blob: f6cd98012a18a3e50c59a68fb8515b1ea5359589 [file] [log] [blame]
wdenke831ad52002-10-17 21:52:26 +00001#
Marian Balakowiczd62379d2006-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 Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenke831ad52002-10-17 21:52:26 +00006#
7
Jean-Christophe PLAGNIOL-VILLARD178e1182008-08-29 21:53:57 +02008# core
Aneesh V55fc5b62011-07-13 05:11:06 +00009ifndef CONFIG_SPL_BUILD
Masahiro Yamada55c745d2013-10-17 17:34:59 +090010obj-y += main.o
11obj-y += command.o
12obj-y += exports.o
13obj-y += hash.o
Simon Glass66b8c8b2014-04-10 20:01:26 -060014ifdef CONFIG_SYS_HUSH_PARSER
15obj-y += cli_hush.o
16endif
17
18# We always have this since drivers/ddr/fs/interactive.c needs it
19obj-y += cli_simple.o
20
Simon Glassd6d592f2014-04-10 20:01:29 -060021obj-y += cli.o
Simon Glass66b8c8b2014-04-10 20:01:26 -060022obj-y += cli_readline.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090023obj-y += s_record.o
24obj-y += xyzModem.o
25obj-y += cmd_disk.o
Jean-Christophe PLAGNIOL-VILLARD178e1182008-08-29 21:53:57 +020026
Simon Glass7b6a95a2014-04-10 20:01:28 -060027# This option is not just y/n - it can have a numeric value
28ifdef CONFIG_BOOTDELAY
29obj-y += autoboot.o
30endif
31
Simon Glass399ed9a2014-04-10 20:01:30 -060032# This option is not just y/n - it can have a numeric value
33ifdef CONFIG_BOOT_RETRY_TIME
34obj-y += bootretry.o
35endif
36
Simon Glassc45e3592013-03-11 06:49:53 +000037# boards
Masahiro Yamada55c745d2013-10-17 17:34:59 +090038obj-$(CONFIG_SYS_GENERIC_BOARD) += board_f.o
39obj-$(CONFIG_SYS_GENERIC_BOARD) += board_r.o
Simon Glassc45e3592013-03-11 06:49:53 +000040
Jean-Christophe PLAGNIOL-VILLARD74ba1ba2008-10-31 12:12:12 +010041# core command
Masahiro Yamada55c745d2013-10-17 17:34:59 +090042obj-y += cmd_boot.o
Simon Glass3b5866d2014-06-12 07:24:46 -060043obj-$(CONFIG_CMD_BOOTM) += cmd_bootm.o bootm.o bootm_os.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090044obj-y += cmd_help.o
45obj-y += cmd_version.o
Jean-Christophe PLAGNIOL-VILLARDaea6f852008-08-30 23:47:38 +020046
Jean-Christophe PLAGNIOL-VILLARD178e1182008-08-29 21:53:57 +020047# environment
Masahiro Yamada55c745d2013-10-17 17:34:59 +090048obj-y += env_attr.o
49obj-y += env_callback.o
50obj-y += env_flags.o
51obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
52obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
53extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
54obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o
55extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
56obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o
57obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
58obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
59obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
60obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
61obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
62obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
63obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
64obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o
65obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o
66obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
Jean-Christophe PLAGNIOL-VILLARD178e1182008-08-29 21:53:57 +020067
68# command
Marek Vasutc4d8a1b2014-03-05 19:58:39 +010069obj-$(CONFIG_CMD_AES) += cmd_aes.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090070obj-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
71obj-$(CONFIG_SOURCE) += cmd_source.o
72obj-$(CONFIG_CMD_SOURCE) += cmd_source.o
73obj-$(CONFIG_CMD_BDI) += cmd_bdinfo.o
74obj-$(CONFIG_CMD_BEDBUG) += bedbug.o cmd_bedbug.o
75obj-$(CONFIG_CMD_BMP) += cmd_bmp.o
76obj-$(CONFIG_CMD_BOOTMENU) += cmd_bootmenu.o
77obj-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
78obj-$(CONFIG_CMD_BOOTSTAGE) += cmd_bootstage.o
79obj-$(CONFIG_CMD_CACHE) += cmd_cache.o
80obj-$(CONFIG_CMD_CBFS) += cmd_cbfs.o
Michal Simeka0d28022013-11-21 13:39:02 -080081obj-$(CONFIG_CMD_CLK) += cmd_clk.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090082obj-$(CONFIG_CMD_CONSOLE) += cmd_console.o
83obj-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o
84obj-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o
85obj-$(CONFIG_CMD_DATE) += cmd_date.o
Simon Glass63b17572014-02-26 15:59:23 -070086obj-$(CONFIG_CMD_DEMO) += cmd_demo.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090087obj-$(CONFIG_CMD_SOUND) += cmd_sound.o
Grant Likelyc0d32e92007-09-24 09:05:31 -060088ifdef CONFIG_4xx
Masahiro Yamada55c745d2013-10-17 17:34:59 +090089obj-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o
Grant Likelyc0d32e92007-09-24 09:05:31 -060090endif
91ifdef CONFIG_POST
Masahiro Yamada55c745d2013-10-17 17:34:59 +090092obj-$(CONFIG_CMD_DIAG) += cmd_diag.o
Grant Likelyc0d32e92007-09-24 09:05:31 -060093endif
Masahiro Yamada55c745d2013-10-17 17:34:59 +090094obj-$(CONFIG_CMD_DISPLAY) += cmd_display.o
95obj-$(CONFIG_CMD_DTT) += cmd_dtt.o
96obj-$(CONFIG_CMD_ECHO) += cmd_echo.o
97obj-$(CONFIG_ENV_IS_IN_EEPROM) += cmd_eeprom.o
98obj-$(CONFIG_CMD_EEPROM) += cmd_eeprom.o
99obj-$(CONFIG_CMD_ELF) += cmd_elf.o
100obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_exit.o
101obj-$(CONFIG_CMD_EXT4) += cmd_ext4.o
102obj-$(CONFIG_CMD_EXT2) += cmd_ext2.o
103obj-$(CONFIG_CMD_FAT) += cmd_fat.o
Tom Rini06ab7dd2014-02-21 08:42:02 -0500104obj-$(CONFIG_CMD_FDC) += cmd_fdc.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900105obj-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900106obj-$(CONFIG_CMD_FITUPD) += cmd_fitupd.o
107obj-$(CONFIG_CMD_FLASH) += cmd_flash.o
Grant Likelyc0d32e92007-09-24 09:05:31 -0600108ifdef CONFIG_FPGA
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900109obj-$(CONFIG_CMD_FPGA) += cmd_fpga.o
Grant Likelyc0d32e92007-09-24 09:05:31 -0600110endif
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900111obj-$(CONFIG_CMD_FPGAD) += cmd_fpgad.o
112obj-$(CONFIG_CMD_FS_GENERIC) += cmd_fs.o
113obj-$(CONFIG_CMD_FUSE) += cmd_fuse.o
114obj-$(CONFIG_CMD_GETTIME) += cmd_gettime.o
115obj-$(CONFIG_CMD_GPIO) += cmd_gpio.o
116obj-$(CONFIG_CMD_I2C) += cmd_i2c.o
117obj-$(CONFIG_CMD_HASH) += cmd_hash.o
118obj-$(CONFIG_CMD_IDE) += cmd_ide.o
119obj-$(CONFIG_CMD_IMMAP) += cmd_immap.o
120obj-$(CONFIG_CMD_INI) += cmd_ini.o
121obj-$(CONFIG_CMD_IRQ) += cmd_irq.o
122obj-$(CONFIG_CMD_ITEST) += cmd_itest.o
123obj-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o
124obj-$(CONFIG_CMD_CRAMFS) += cmd_cramfs.o
125obj-$(CONFIG_CMD_LDRINFO) += cmd_ldrinfo.o
126obj-$(CONFIG_CMD_LED) += cmd_led.o
127obj-$(CONFIG_CMD_LICENSE) += cmd_license.o
128obj-y += cmd_load.o
129obj-$(CONFIG_LOGBUFFER) += cmd_log.o
130obj-$(CONFIG_ID_EEPROM) += cmd_mac.o
131obj-$(CONFIG_CMD_MD5SUM) += cmd_md5sum.o
132obj-$(CONFIG_CMD_MEMORY) += cmd_mem.o
133obj-$(CONFIG_CMD_IO) += cmd_io.o
134obj-$(CONFIG_CMD_MFSL) += cmd_mfsl.o
135obj-$(CONFIG_MII) += miiphyutil.o
136obj-$(CONFIG_CMD_MII) += miiphyutil.o
137obj-$(CONFIG_PHYLIB) += miiphyutil.o
138obj-$(CONFIG_CMD_MII) += cmd_mii.o
Andy Fleminga1ca3682011-03-21 18:03:22 -0500139ifdef CONFIG_PHYLIB
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900140obj-$(CONFIG_CMD_MII) += cmd_mdio.o
Andy Fleminga1ca3682011-03-21 18:03:22 -0500141endif
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900142obj-$(CONFIG_CMD_MISC) += cmd_misc.o
143obj-$(CONFIG_CMD_MMC) += cmd_mmc.o
144obj-$(CONFIG_CMD_MMC_SPI) += cmd_mmc_spi.o
145obj-$(CONFIG_MP) += cmd_mp.o
146obj-$(CONFIG_CMD_MTDPARTS) += cmd_mtdparts.o
147obj-$(CONFIG_CMD_NAND) += cmd_nand.o
148obj-$(CONFIG_CMD_NET) += cmd_net.o
149obj-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
150obj-$(CONFIG_CMD_OTP) += cmd_otp.o
151obj-$(CONFIG_CMD_PART) += cmd_part.o
Grant Likelyc0d32e92007-09-24 09:05:31 -0600152ifdef CONFIG_PCI
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900153obj-$(CONFIG_CMD_PCI) += cmd_pci.o
Grant Likelyc0d32e92007-09-24 09:05:31 -0600154endif
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900155obj-y += cmd_pcmcia.o
156obj-$(CONFIG_CMD_PORTIO) += cmd_portio.o
157obj-$(CONFIG_CMD_PXE) += cmd_pxe.o
158obj-$(CONFIG_CMD_READ) += cmd_read.o
159obj-$(CONFIG_CMD_REGINFO) += cmd_reginfo.o
160obj-$(CONFIG_CMD_REISER) += cmd_reiser.o
161obj-$(CONFIG_SANDBOX) += cmd_sandbox.o
162obj-$(CONFIG_CMD_SATA) += cmd_sata.o
163obj-$(CONFIG_CMD_SF) += cmd_sf.o
164obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
165obj-$(CONFIG_CMD_SHA1SUM) += cmd_sha1sum.o
166obj-$(CONFIG_CMD_SETEXPR) += cmd_setexpr.o
167obj-$(CONFIG_CMD_SOFTSWITCH) += cmd_softswitch.o
168obj-$(CONFIG_CMD_SPI) += cmd_spi.o
169obj-$(CONFIG_CMD_SPIBOOTLDR) += cmd_spibootldr.o
170obj-$(CONFIG_CMD_STRINGS) += cmd_strings.o
171obj-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o
172obj-$(CONFIG_CMD_TIME) += cmd_time.o
173obj-$(CONFIG_CMD_TRACE) += cmd_trace.o
174obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_test.o
175obj-$(CONFIG_CMD_TPM) += cmd_tpm.o
176obj-$(CONFIG_CMD_TSI148) += cmd_tsi148.o
177obj-$(CONFIG_CMD_UBI) += cmd_ubi.o
178obj-$(CONFIG_CMD_UBIFS) += cmd_ubifs.o
179obj-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o
180obj-$(CONFIG_CMD_UNZIP) += cmd_unzip.o
Patrice Bouchandbd1f7ef2014-02-15 22:19:57 -0700181ifdef CONFIG_LZMA
182obj-$(CONFIG_CMD_LZMADEC) += cmd_lzmadec.o
183endif
Jean-Christophe PLAGNIOL-VILLARD178e1182008-08-29 21:53:57 +0200184ifdef CONFIG_CMD_USB
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900185obj-y += cmd_usb.o
186obj-y += usb.o usb_hub.o
187obj-$(CONFIG_USB_STORAGE) += usb_storage.o
Jean-Christophe PLAGNIOL-VILLARD178e1182008-08-29 21:53:57 +0200188endif
Sebastian Siewior9d4471e2014-05-05 15:08:10 -0500189obj-$(CONFIG_CMD_FASTBOOT) += cmd_fastboot.o
190
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900191obj-$(CONFIG_CMD_USB_MASS_STORAGE) += cmd_usb_mass_storage.o
192obj-$(CONFIG_CMD_THOR_DOWNLOAD) += cmd_thordown.o
193obj-$(CONFIG_CMD_XIMG) += cmd_ximg.o
194obj-$(CONFIG_YAFFS2) += cmd_yaffs2.o
195obj-$(CONFIG_CMD_SPL) += cmd_spl.o
196obj-$(CONFIG_CMD_ZIP) += cmd_zip.o
197obj-$(CONFIG_CMD_ZFS) += cmd_zfs.o
Jean-Christophe PLAGNIOL-VILLARD74ba1ba2008-10-31 12:12:12 +0100198
199# others
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900200obj-$(CONFIG_BOOTSTAGE) += bootstage.o
201obj-$(CONFIG_CONSOLE_MUX) += iomux.o
202obj-y += flash.o
203obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
204obj-$(CONFIG_I2C_EDID) += edid.o
205obj-$(CONFIG_KALLSYMS) += kallsyms.o
206obj-y += splash.o
207obj-$(CONFIG_LCD) += lcd.o
208obj-$(CONFIG_LYNXKDI) += lynxkdi.o
209obj-$(CONFIG_MENU) += menu.o
210obj-$(CONFIG_MODEM_SUPPORT) += modem.o
211obj-$(CONFIG_UPDATE_TFTP) += update.o
212obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
213obj-$(CONFIG_CMD_DFU) += cmd_dfu.o
214obj-$(CONFIG_CMD_GPT) += cmd_gpt.o
Aneesh V55fc5b62011-07-13 05:11:06 +0000215endif
216
Matt Porter79bfa732012-01-31 12:03:57 +0000217ifdef CONFIG_SPL_BUILD
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900218obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
219obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
220obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
Ying Zhang602f7d32013-05-20 14:07:25 +0800221# environment
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900222obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o
223obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o
224obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o
Dan Murphycb367e12014-01-16 11:23:30 -0600225ifdef CONFIG_SPL_USB_HOST_SUPPORT
226obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
227obj-$(CONFIG_USB_STORAGE) += usb_storage.o
228endif
Dan Murphy0c3ab852014-02-03 06:59:01 -0600229ifdef CONFIG_SPL_SATA_SUPPORT
230obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
231endif
Ying Zhang602f7d32013-05-20 14:07:25 +0800232ifneq ($(CONFIG_SPL_NET_SUPPORT),y)
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900233obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
234obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
235obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
236obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
237obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
Ying Zhang602f7d32013-05-20 14:07:25 +0800238else
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900239obj-y += env_nowhere.o
Matt Porter79bfa732012-01-31 12:03:57 +0000240endif
Ying Zhang602f7d32013-05-20 14:07:25 +0800241endif
242# core command
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900243obj-y += cmd_nvedit.o
Ying Zhang602f7d32013-05-20 14:07:25 +0800244#environment
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900245obj-y += env_common.o
Ying Zhangded52a42013-05-20 14:07:26 +0800246#others
247ifdef CONFIG_DDR_SPD
248SPD := y
249endif
250ifdef CONFIG_SPD_EEPROM
251SPD := y
252endif
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900253obj-$(SPD) += ddr_spd.o
254obj-$(CONFIG_HWCONFIG) += hwconfig.o
255obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
256obj-y += console.o
Vadim Bendeburye5d15792014-02-27 13:26:02 -0700257obj-$(CONFIG_CROS_EC) += cros_ec.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900258obj-y += dlmalloc.o
259obj-y += image.o
Sebastian Siewior686d6672014-05-05 15:08:09 -0500260obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900261obj-$(CONFIG_OF_LIBFDT) += image-fdt.o
262obj-$(CONFIG_FIT) += image-fit.o
263obj-$(CONFIG_FIT_SIGNATURE) += image-sig.o
264obj-y += memsize.o
265obj-y += stdio.o
wdenke831ad52002-10-17 21:52:26 +0000266
Masahiro Yamada0d68fb12014-02-04 17:24:28 +0900267CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)