blob: 74404beb3635624cf04fa12159f66f531e638dc7 [file] [log] [blame]
wdenke831ad52002-10-17 21:52:26 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2004-2006
wdenke831ad52002-10-17 21:52:26 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenke831ad52002-10-17 21:52:26 +00006#
7
Jean-Christophe PLAGNIOL-VILLARD578118b2008-08-29 21:53:57 +02008# core
Aneesh V05bad4a2011-07-13 05:11:06 +00009ifndef CONFIG_SPL_BUILD
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090010obj-y += main.o
11obj-y += command.o
12obj-y += exports.o
13obj-y += hash.o
14obj-$(CONFIG_SYS_HUSH_PARSER) += hush.o
15obj-y += s_record.o
16obj-y += xyzModem.o
17obj-y += cmd_disk.o
Jean-Christophe PLAGNIOL-VILLARD578118b2008-08-29 21:53:57 +020018
Simon Glass1938f4a2013-03-11 06:49:53 +000019# boards
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090020obj-$(CONFIG_SYS_GENERIC_BOARD) += board_f.o
21obj-$(CONFIG_SYS_GENERIC_BOARD) += board_r.o
Simon Glass1938f4a2013-03-11 06:49:53 +000022
Jean-Christophe PLAGNIOL-VILLARDa80b21d2008-10-31 12:12:12 +010023# core command
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090024obj-y += cmd_boot.o
25obj-$(CONFIG_CMD_BOOTM) += cmd_bootm.o
26obj-y += cmd_help.o
27obj-y += cmd_version.o
Jean-Christophe PLAGNIOL-VILLARD2d02d912008-08-30 23:47:38 +020028
Jean-Christophe PLAGNIOL-VILLARD578118b2008-08-29 21:53:57 +020029# environment
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090030obj-y += env_attr.o
31obj-y += env_callback.o
32obj-y += env_flags.o
33obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
34obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
35extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
36obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o
37extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
38obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o
39obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
40obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
41obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
42obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
43obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
44obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
45obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
46obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o
47obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o
48obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
Jean-Christophe PLAGNIOL-VILLARD578118b2008-08-29 21:53:57 +020049
50# command
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090051obj-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
52obj-$(CONFIG_SOURCE) += cmd_source.o
53obj-$(CONFIG_CMD_SOURCE) += cmd_source.o
54obj-$(CONFIG_CMD_BDI) += cmd_bdinfo.o
55obj-$(CONFIG_CMD_BEDBUG) += bedbug.o cmd_bedbug.o
56obj-$(CONFIG_CMD_BMP) += cmd_bmp.o
57obj-$(CONFIG_CMD_BOOTMENU) += cmd_bootmenu.o
58obj-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
59obj-$(CONFIG_CMD_BOOTSTAGE) += cmd_bootstage.o
60obj-$(CONFIG_CMD_CACHE) += cmd_cache.o
61obj-$(CONFIG_CMD_CBFS) += cmd_cbfs.o
62obj-$(CONFIG_CMD_CONSOLE) += cmd_console.o
63obj-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o
64obj-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o
65obj-$(CONFIG_CMD_DATE) += cmd_date.o
66obj-$(CONFIG_CMD_SOUND) += cmd_sound.o
Grant Likely4a437192007-09-24 09:05:31 -060067ifdef CONFIG_4xx
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090068obj-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o
Grant Likely4a437192007-09-24 09:05:31 -060069endif
70ifdef CONFIG_POST
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090071obj-$(CONFIG_CMD_DIAG) += cmd_diag.o
Grant Likely4a437192007-09-24 09:05:31 -060072endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090073obj-$(CONFIG_CMD_DISPLAY) += cmd_display.o
74obj-$(CONFIG_CMD_DTT) += cmd_dtt.o
75obj-$(CONFIG_CMD_ECHO) += cmd_echo.o
76obj-$(CONFIG_ENV_IS_IN_EEPROM) += cmd_eeprom.o
77obj-$(CONFIG_CMD_EEPROM) += cmd_eeprom.o
78obj-$(CONFIG_CMD_ELF) += cmd_elf.o
79obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_exit.o
80obj-$(CONFIG_CMD_EXT4) += cmd_ext4.o
81obj-$(CONFIG_CMD_EXT2) += cmd_ext2.o
82obj-$(CONFIG_CMD_FAT) += cmd_fat.o
83obj-$(CONFIG_CMD_FDC)$(CONFIG_CMD_FDOS) += cmd_fdc.o
84obj-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
85obj-$(CONFIG_CMD_FDOS) += cmd_fdos.o
86obj-$(CONFIG_CMD_FITUPD) += cmd_fitupd.o
87obj-$(CONFIG_CMD_FLASH) += cmd_flash.o
Grant Likely4a437192007-09-24 09:05:31 -060088ifdef CONFIG_FPGA
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090089obj-$(CONFIG_CMD_FPGA) += cmd_fpga.o
Grant Likely4a437192007-09-24 09:05:31 -060090endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090091obj-$(CONFIG_CMD_FPGAD) += cmd_fpgad.o
92obj-$(CONFIG_CMD_FS_GENERIC) += cmd_fs.o
93obj-$(CONFIG_CMD_FUSE) += cmd_fuse.o
94obj-$(CONFIG_CMD_GETTIME) += cmd_gettime.o
95obj-$(CONFIG_CMD_GPIO) += cmd_gpio.o
96obj-$(CONFIG_CMD_I2C) += cmd_i2c.o
97obj-$(CONFIG_CMD_HASH) += cmd_hash.o
98obj-$(CONFIG_CMD_IDE) += cmd_ide.o
99obj-$(CONFIG_CMD_IMMAP) += cmd_immap.o
100obj-$(CONFIG_CMD_INI) += cmd_ini.o
101obj-$(CONFIG_CMD_IRQ) += cmd_irq.o
102obj-$(CONFIG_CMD_ITEST) += cmd_itest.o
103obj-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o
104obj-$(CONFIG_CMD_CRAMFS) += cmd_cramfs.o
105obj-$(CONFIG_CMD_LDRINFO) += cmd_ldrinfo.o
106obj-$(CONFIG_CMD_LED) += cmd_led.o
107obj-$(CONFIG_CMD_LICENSE) += cmd_license.o
108obj-y += cmd_load.o
109obj-$(CONFIG_LOGBUFFER) += cmd_log.o
110obj-$(CONFIG_ID_EEPROM) += cmd_mac.o
111obj-$(CONFIG_CMD_MD5SUM) += cmd_md5sum.o
112obj-$(CONFIG_CMD_MEMORY) += cmd_mem.o
113obj-$(CONFIG_CMD_IO) += cmd_io.o
114obj-$(CONFIG_CMD_MFSL) += cmd_mfsl.o
115obj-$(CONFIG_MII) += miiphyutil.o
116obj-$(CONFIG_CMD_MII) += miiphyutil.o
117obj-$(CONFIG_PHYLIB) += miiphyutil.o
118obj-$(CONFIG_CMD_MII) += cmd_mii.o
Andy Fleming995daa02011-03-21 18:03:22 -0500119ifdef CONFIG_PHYLIB
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900120obj-$(CONFIG_CMD_MII) += cmd_mdio.o
Andy Fleming995daa02011-03-21 18:03:22 -0500121endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900122obj-$(CONFIG_CMD_MISC) += cmd_misc.o
123obj-$(CONFIG_CMD_MMC) += cmd_mmc.o
124obj-$(CONFIG_CMD_MMC_SPI) += cmd_mmc_spi.o
125obj-$(CONFIG_MP) += cmd_mp.o
126obj-$(CONFIG_CMD_MTDPARTS) += cmd_mtdparts.o
127obj-$(CONFIG_CMD_NAND) += cmd_nand.o
128obj-$(CONFIG_CMD_NET) += cmd_net.o
129obj-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
130obj-$(CONFIG_CMD_OTP) += cmd_otp.o
131obj-$(CONFIG_CMD_PART) += cmd_part.o
Grant Likely4a437192007-09-24 09:05:31 -0600132ifdef CONFIG_PCI
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900133obj-$(CONFIG_CMD_PCI) += cmd_pci.o
Grant Likely4a437192007-09-24 09:05:31 -0600134endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900135obj-y += cmd_pcmcia.o
136obj-$(CONFIG_CMD_PORTIO) += cmd_portio.o
137obj-$(CONFIG_CMD_PXE) += cmd_pxe.o
138obj-$(CONFIG_CMD_READ) += cmd_read.o
139obj-$(CONFIG_CMD_REGINFO) += cmd_reginfo.o
140obj-$(CONFIG_CMD_REISER) += cmd_reiser.o
141obj-$(CONFIG_SANDBOX) += cmd_sandbox.o
142obj-$(CONFIG_CMD_SATA) += cmd_sata.o
143obj-$(CONFIG_CMD_SF) += cmd_sf.o
144obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
145obj-$(CONFIG_CMD_SHA1SUM) += cmd_sha1sum.o
146obj-$(CONFIG_CMD_SETEXPR) += cmd_setexpr.o
147obj-$(CONFIG_CMD_SOFTSWITCH) += cmd_softswitch.o
148obj-$(CONFIG_CMD_SPI) += cmd_spi.o
149obj-$(CONFIG_CMD_SPIBOOTLDR) += cmd_spibootldr.o
150obj-$(CONFIG_CMD_STRINGS) += cmd_strings.o
151obj-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o
152obj-$(CONFIG_CMD_TIME) += cmd_time.o
153obj-$(CONFIG_CMD_TRACE) += cmd_trace.o
154obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_test.o
155obj-$(CONFIG_CMD_TPM) += cmd_tpm.o
156obj-$(CONFIG_CMD_TSI148) += cmd_tsi148.o
157obj-$(CONFIG_CMD_UBI) += cmd_ubi.o
158obj-$(CONFIG_CMD_UBIFS) += cmd_ubifs.o
159obj-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o
160obj-$(CONFIG_CMD_UNZIP) += cmd_unzip.o
Jean-Christophe PLAGNIOL-VILLARDd6e9ee92008-08-13 01:40:38 +0200161ifdef CONFIG_CMD_USB
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900162obj-y += cmd_usb.o
163obj-y += usb.o usb_hub.o
164obj-$(CONFIG_USB_STORAGE) += usb_storage.o
Jean-Christophe PLAGNIOL-VILLARDd6e9ee92008-08-13 01:40:38 +0200165endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900166obj-$(CONFIG_CMD_USB_MASS_STORAGE) += cmd_usb_mass_storage.o
167obj-$(CONFIG_CMD_THOR_DOWNLOAD) += cmd_thordown.o
168obj-$(CONFIG_CMD_XIMG) += cmd_ximg.o
169obj-$(CONFIG_YAFFS2) += cmd_yaffs2.o
170obj-$(CONFIG_CMD_SPL) += cmd_spl.o
171obj-$(CONFIG_CMD_ZIP) += cmd_zip.o
172obj-$(CONFIG_CMD_ZFS) += cmd_zfs.o
Jean-Christophe PLAGNIOL-VILLARDa80b21d2008-10-31 12:12:12 +0100173
174# others
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900175obj-$(CONFIG_BOOTSTAGE) += bootstage.o
176obj-$(CONFIG_CONSOLE_MUX) += iomux.o
177obj-y += flash.o
178obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
179obj-$(CONFIG_I2C_EDID) += edid.o
180obj-$(CONFIG_KALLSYMS) += kallsyms.o
181obj-y += splash.o
182obj-$(CONFIG_LCD) += lcd.o
183obj-$(CONFIG_LYNXKDI) += lynxkdi.o
184obj-$(CONFIG_MENU) += menu.o
185obj-$(CONFIG_MODEM_SUPPORT) += modem.o
186obj-$(CONFIG_UPDATE_TFTP) += update.o
187obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
188obj-$(CONFIG_CMD_DFU) += cmd_dfu.o
189obj-$(CONFIG_CMD_GPT) += cmd_gpt.o
Aneesh V05bad4a2011-07-13 05:11:06 +0000190endif
191
Matt Porter24de3572012-01-31 12:03:57 +0000192ifdef CONFIG_SPL_BUILD
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900193obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
194obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
195obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
Ying Zhangba1bee42013-05-20 14:07:25 +0800196# environment
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900197obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o
198obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o
199obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o
Ying Zhangba1bee42013-05-20 14:07:25 +0800200ifneq ($(CONFIG_SPL_NET_SUPPORT),y)
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900201obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
202obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
203obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
204obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
205obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
Ying Zhangba1bee42013-05-20 14:07:25 +0800206else
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900207obj-y += env_nowhere.o
Matt Porter24de3572012-01-31 12:03:57 +0000208endif
Ying Zhangba1bee42013-05-20 14:07:25 +0800209endif
210# core command
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900211obj-y += cmd_nvedit.o
Ying Zhangba1bee42013-05-20 14:07:25 +0800212#environment
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900213obj-y += env_common.o
Ying Zhangf90572d2013-05-20 14:07:26 +0800214#others
215ifdef CONFIG_DDR_SPD
216SPD := y
217endif
218ifdef CONFIG_SPD_EEPROM
219SPD := y
220endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900221obj-$(SPD) += ddr_spd.o
222obj-$(CONFIG_HWCONFIG) += hwconfig.o
223obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
224obj-y += console.o
225obj-y += dlmalloc.o
226obj-y += image.o
227obj-$(CONFIG_OF_LIBFDT) += image-fdt.o
228obj-$(CONFIG_FIT) += image-fit.o
229obj-$(CONFIG_FIT_SIGNATURE) += image-sig.o
230obj-y += memsize.o
231obj-y += stdio.o
wdenke831ad52002-10-17 21:52:26 +0000232
233CPPFLAGS += -I..
234
Masahiro Yamada017ce202013-11-18 16:24:58 +0900235$(obj)env_embedded.o: $(src)env_embedded.c
wdenke831ad52002-10-17 21:52:26 +0000236 $(CC) $(AFLAGS) -Wa,--no-warn \
Marian Balakowiczf9328632006-09-01 19:49:50 +0200237 -DENV_CRC=$(shell $(obj)../tools/envcrc) \
Jean-Christophe PLAGNIOL-VILLARD0cf4fd32008-09-10 22:48:01 +0200238 -c -o $@ $(src)env_embedded.c
wdenke831ad52002-10-17 21:52:26 +0000239
Albert ARIBAUDb823fd92012-10-09 09:28:15 +0000240# SEE README.arm-unaligned-accesses
241$(obj)hush.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
242$(obj)fdt_support.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)