GNU ARM汇编--(十七)u-boot的makefile和mkconfig解读
时间:11-26
来源:互联网
点击:
- 二个地方没找到,就找第三个地方:其中CPUDIR是在顶层的config.mk中定义的,在arch/arm/cpu/arm920t中找这个目录也没有
- #第三个地方没找到,就找第四个地方:arch/arm/cpu/u-boot.lds,这里就找到了!!!!
- ##########################################################################################
- #########################################################################
- #U-Bootobjects....orderisimportant(i.e.startmustbefirst)
- OBJS=$(CPUDIR)/start.o
- ifeq($(CPU),x86)
- OBJS+=$(CPUDIR)/start16.o
- OBJS+=$(CPUDIR)/resetvec.o
- endif
- ifeq($(CPU),ppc4xx)
- OBJS+=$(CPUDIR)/resetvec.o
- endif
- ifeq($(CPU),mpc85xx)
- OBJS+=$(CPUDIR)/resetvec.o
- endif
- OBJS:=$(addprefix$(obj),$(OBJS))
- #####################################
- #为OBJS增加前缀,其中obj在顶层目录的config.mk中定义,这里根据实际情况OBJS就是arch/arm/cpu/arm920t/start.o
- #####################################
- LIBS=lib/libgeneric.o
- LIBS+=lib/lzma/liblzma.o
- LIBS+=lib/lzo/liblzo.o
- LIBS+=lib/zlib/libz.o
- ifeq($(CONFIG_TIZEN),y)
- LIBS+=lib/tizen/libtizen.o
- endif
- LIBS+=$(shellif[-fboard/$(VENDOR)/common/Makefile];thenecho
- "board/$(VENDOR)/common/lib$(VENDOR).o";fi)
- LIBS+=$(CPUDIR)/lib$(CPU).o
- ifdefSOC
- LIBS+=$(CPUDIR)/$(SOC)/lib$(SOC).o
- endif
- ifeq($(CPU),ixp)
- LIBS+=arch/arm/cpu/ixp/npe/libnpe.o
- endif
- ifeq($(CONFIG_OF_EMBED),y)
- LIBS+=dts/libdts.o
- endif
- LIBS+=arch/$(ARCH)/lib/lib$(ARCH).o
- LIBS+=fs/cramfs/libcramfs.ofs/fat/libfat.ofs/fdos/libfdos.ofs/jffs2/libjffs2.o
- fs/reiserfs/libreiserfs.ofs/ext2/libext2fs.ofs/yaffs2/libyaffs2.o
- fs/ubifs/libubifs.o
- LIBS+=net/libnet.o
- LIBS+=disk/libdisk.o
- LIBS+=drivers/bios_emulator/libatibiosemu.o
- LIBS+=drivers/block/libblock.o
- LIBS+=drivers/dma/libdma.o
- LIBS+=drivers/fpga/libfpga.o
- LIBS+=drivers/gpio/libgpio.o
- LIBS+=drivers/hwmon/libhwmon.o
- LIBS+=drivers/i2c/libi2c.o
- LIBS+=drivers/input/libinput.o
- LIBS+=drivers/misc/libmisc.o
- LIBS+=drivers/mmc/libmmc.o
- LIBS+=drivers/mtd/libmtd.o
- LIBS+=drivers/mtd/nand/libnand.o
- LIBS+=drivers/mtd/onenand/libonenand.o
- LIBS+=drivers/mtd/ubi/libubi.o
- LIBS+=drivers/mtd/spi/libspi_flash.o
- LIBS+=drivers/net/libnet.o
- LIBS+=drivers/net/phy/libphy.o
- LIBS+=drivers/pci/libpci.o
- LIBS+=drivers/pcmcia/libpcmcia.o
- LIBS+=drivers/power/libpower.o
- LIBS+=drivers/spi/libspi.o
- ifeq($(CPU),mpc83xx)
- LIBS+=drivers/qe/libqe.o
- LIBS+=arch/powerpc/cpu/mpc8xxx/ddr/libddr.o
- LIBS+=arch/powerpc/cpu/mpc8xxx/lib8xxx.o
- endif
- ifeq($(CPU),mpc85xx)
- LIBS+=drivers/qe/libqe.o
- LIBS+=drivers/net/fm/libfm.o
- LIBS+=arch/powerpc/cpu/mpc8xxx/ddr/libddr.o
- LIBS+=arch/powerpc/cpu/mpc8xxx/lib8xxx.o
- endif
- ifeq($(CPU),mpc86xx)
- LIBS+=arch/powerpc/cpu/mpc8xxx/ddr/libddr.o
- LIBS+=arch/powerpc/cpu/mpc8xxx/lib8xxx.o
- endif
- LIBS+=drivers/rtc/librtc.o
- LIBS+=drivers/serial/libserial.o
- ifeq($(CONFIG_GENERIC_LPC_TPM),y)
- LIBS+=drivers/tpm/libtpm.o
- endif
- LIBS+=drivers/twserial/libtws.o
- LIBS+=drivers/usb/eth/libusb_eth.o
- LIBS+=drivers/usb/gadget/libusb_gadget.o
- LIBS+=drivers/usb/host/libusb_host.o
- LIBS+=drivers/usb/musb/libusb_musb.o
- LIBS+=drivers/usb/phy/libusb_phy.o
- LIBS+=drivers/usb/ulpi/libusb_ulpi.o
- LIBS+=drivers/video/libvideo.o
- LIBS+=drivers/watchdog/libwatchdog.o
- LIBS+=common/libcommon.o
- LIBS+=lib/libfdt/libfdt.o
- LIBS+=api/libapi.o
- LIBS+=post/libpost.o
- ifneq($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
- LIBS+=$(CPUDIR)/omap-common/libomap-common.o
- endif
- ifeq($(SOC),mx5)
- LIBS+=$(CPUDIR)/imx-common/libimx-common.o
- endif
- ifeq($(SOC),mx6)
- LIBS+=$(CPUDIR)/imx-common/libimx-common.o
- endif
- ifeq($(SOC),s5pc1xx)
- LIBS+=$(CPUDIR)/s5p-common/libs5p-common.o
- endif
- ifeq($(SOC),exynos)
- LIBS+=$(CPUDIR)/s5p-common/libs5p-common.o
- endif
- LIBS:=$(addprefix$(obj),$(sort$(LIBS)))
- ########################################
- #将LIBS排序后为LIBS增加前缀
- #########################################
- .PHONY:$(LIBS)
- LIBBOARD=board/$(BOARDDIR)
ARM汇编u-bootmakefilemkconfi 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)