开发者

Does target order in kernel build makefiles matter?

开发者 https://www.devze.com 2023-01-27 12:36 出处:网络
This first line of my arch/arm/mach-omap2/Makefile is # Common support obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o

This first line of my arch/arm/mach-omap2/Makefile is

# Common support
obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o
开发者_Python百科

but it is being ignored by the kernel build system. Only when I move this line to the end of the file do the targets get built. Could another line in the Makefile override the first?


Yes.

Look for another line that assigns a different value to obj-y. If you don't find one, try moving that line to the middle of the makefile, and see if the targets get built; from there you can do a binary search.

0

精彩评论

暂无评论...
验证码 换一张
取 消