blob: 94554f2939e5361179842fef3777d7ee6c06165d [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
Masahiro Yamada55c745d2013-10-17 17:34:59 +090011obj-y += exports.o
12obj-y += hash.o
Simon Glass66b8c8b2014-04-10 20:01:26 -060013ifdef CONFIG_SYS_HUSH_PARSER
14obj-y += cli_hush.o
15endif
16
Simon Glass7b6a95a2014-04-10 20:01:28 -060017# This option is not just y/n - it can have a numeric value
18ifdef CONFIG_BOOTDELAY
19obj-y += autoboot.o
20endif
21
Simon Glass399ed9a2014-04-10 20:01:30 -060022# This option is not just y/n - it can have a numeric value
23ifdef CONFIG_BOOT_RETRY_TIME
24obj-y += bootretry.o
25endif
26
Simon Glassc45e3592013-03-11 06:49:53 +000027# boards
Masahiro Yamada55c745d2013-10-17 17:34:59 +090028obj-$(CONFIG_SYS_GENERIC_BOARD) += board_f.o
29obj-$(CONFIG_SYS_GENERIC_BOARD) += board_r.o
Simon Glassc45e3592013-03-11 06:49:53 +000030
Jean-Christophe PLAGNIOL-VILLARD74ba1ba2008-10-31 12:12:12 +010031# core command
Masahiro Yamada55c745d2013-10-17 17:34:59 +090032obj-y += cmd_boot.o
Simon Glass3b5866d2014-06-12 07:24:46 -060033obj-$(CONFIG_CMD_BOOTM) += cmd_bootm.o bootm.o bootm_os.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090034obj-y += cmd_help.o
35obj-y += cmd_version.o
Jean-Christophe PLAGNIOL-VILLARDaea6f852008-08-30 23:47:38 +020036
Jean-Christophe PLAGNIOL-VILLARD178e1182008-08-29 21:53:57 +020037# environment
Masahiro Yamada55c745d2013-10-17 17:34:59 +090038obj-y += env_attr.o
39obj-y += env_callback.o
40obj-y += env_flags.o
41obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
42obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
43extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
44obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o
45extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
46obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o
47obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
48obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
49obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
50obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
51obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
52obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
53obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
54obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o
55obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o
56obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
Jean-Christophe PLAGNIOL-VILLARD178e1182008-08-29 21:53:57 +020057
58# command
Marek Vasutc4d8a1b2014-03-05 19:58:39 +010059obj-$(CONFIG_CMD_AES) += cmd_aes.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090060obj-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
61obj-$(CONFIG_SOURCE) += cmd_source.o
62obj-$(CONFIG_CMD_SOURCE) += cmd_source.o
63obj-$(CONFIG_CMD_BDI) += cmd_bdinfo.o
64obj-$(CONFIG_CMD_BEDBUG) += bedbug.o cmd_bedbug.o
65obj-$(CONFIG_CMD_BMP) += cmd_bmp.o
66obj-$(CONFIG_CMD_BOOTMENU) += cmd_bootmenu.o
67obj-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
68obj-$(CONFIG_CMD_BOOTSTAGE) += cmd_bootstage.o
69obj-$(CONFIG_CMD_CACHE) += cmd_cache.o
70obj-$(CONFIG_CMD_CBFS) += cmd_cbfs.o
Michal Simeka0d28022013-11-21 13:39:02 -080071obj-$(CONFIG_CMD_CLK) += cmd_clk.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090072obj-$(CONFIG_CMD_CONSOLE) += cmd_console.o
73obj-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o
74obj-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o
75obj-$(CONFIG_CMD_DATE) += cmd_date.o
Simon Glass63b17572014-02-26 15:59:23 -070076obj-$(CONFIG_CMD_DEMO) += cmd_demo.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090077obj-$(CONFIG_CMD_SOUND) += cmd_sound.o
Grant Likelyc0d32e92007-09-24 09:05:31 -060078ifdef CONFIG_4xx
Masahiro Yamada55c745d2013-10-17 17:34:59 +090079obj-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o
Grant Likelyc0d32e92007-09-24 09:05:31 -060080endif
81ifdef CONFIG_POST
Masahiro Yamada55c745d2013-10-17 17:34:59 +090082obj-$(CONFIG_CMD_DIAG) += cmd_diag.o
Grant Likelyc0d32e92007-09-24 09:05:31 -060083endif
Masahiro Yamada55c745d2013-10-17 17:34:59 +090084obj-$(CONFIG_CMD_DISPLAY) += cmd_display.o
85obj-$(CONFIG_CMD_DTT) += cmd_dtt.o
86obj-$(CONFIG_CMD_ECHO) += cmd_echo.o
87obj-$(CONFIG_ENV_IS_IN_EEPROM) += cmd_eeprom.o
88obj-$(CONFIG_CMD_EEPROM) += cmd_eeprom.o
89obj-$(CONFIG_CMD_ELF) += cmd_elf.o
90obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_exit.o
91obj-$(CONFIG_CMD_EXT4) += cmd_ext4.o
92obj-$(CONFIG_CMD_EXT2) += cmd_ext2.o
93obj-$(CONFIG_CMD_FAT) += cmd_fat.o
Tom Rini06ab7dd2014-02-21 08:42:02 -050094obj-$(CONFIG_CMD_FDC) += cmd_fdc.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090095obj-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +090096obj-$(CONFIG_CMD_FITUPD) += cmd_fitupd.o
97obj-$(CONFIG_CMD_FLASH) += cmd_flash.o
Grant Likelyc0d32e92007-09-24 09:05:31 -060098ifdef CONFIG_FPGA
Masahiro Yamada55c745d2013-10-17 17:34:59 +090099obj-$(CONFIG_CMD_FPGA) += cmd_fpga.o
Grant Likelyc0d32e92007-09-24 09:05:31 -0600100endif
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900101obj-$(CONFIG_CMD_FPGAD) += cmd_fpgad.o
102obj-$(CONFIG_CMD_FS_GENERIC) += cmd_fs.o
103obj-$(CONFIG_CMD_FUSE) += cmd_fuse.o
104obj-$(CONFIG_CMD_GETTIME) += cmd_gettime.o
105obj-$(CONFIG_CMD_GPIO) += cmd_gpio.o
106obj-$(CONFIG_CMD_I2C) += cmd_i2c.o
Simon Glass4dc47ca2014-06-11 23:29:41 -0600107obj-$(CONFIG_CMD_IOTRACE) += cmd_iotrace.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900108obj-$(CONFIG_CMD_HASH) += cmd_hash.o
109obj-$(CONFIG_CMD_IDE) += cmd_ide.o
110obj-$(CONFIG_CMD_IMMAP) += cmd_immap.o
111obj-$(CONFIG_CMD_INI) += cmd_ini.o
112obj-$(CONFIG_CMD_IRQ) += cmd_irq.o
113obj-$(CONFIG_CMD_ITEST) += cmd_itest.o
114obj-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o
115obj-$(CONFIG_CMD_CRAMFS) += cmd_cramfs.o
116obj-$(CONFIG_CMD_LDRINFO) += cmd_ldrinfo.o
117obj-$(CONFIG_CMD_LED) += cmd_led.o
118obj-$(CONFIG_CMD_LICENSE) += cmd_license.o
119obj-y += cmd_load.o
120obj-$(CONFIG_LOGBUFFER) += cmd_log.o
121obj-$(CONFIG_ID_EEPROM) += cmd_mac.o
122obj-$(CONFIG_CMD_MD5SUM) += cmd_md5sum.o
123obj-$(CONFIG_CMD_MEMORY) += cmd_mem.o
124obj-$(CONFIG_CMD_IO) += cmd_io.o
125obj-$(CONFIG_CMD_MFSL) += cmd_mfsl.o
126obj-$(CONFIG_MII) += miiphyutil.o
127obj-$(CONFIG_CMD_MII) += miiphyutil.o
128obj-$(CONFIG_PHYLIB) += miiphyutil.o
129obj-$(CONFIG_CMD_MII) += cmd_mii.o
Andy Fleminga1ca3682011-03-21 18:03:22 -0500130ifdef CONFIG_PHYLIB
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900131obj-$(CONFIG_CMD_MII) += cmd_mdio.o
Andy Fleminga1ca3682011-03-21 18:03:22 -0500132endif
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900133obj-$(CONFIG_CMD_MISC) += cmd_misc.o
134obj-$(CONFIG_CMD_MMC) += cmd_mmc.o
135obj-$(CONFIG_CMD_MMC_SPI) += cmd_mmc_spi.o
136obj-$(CONFIG_MP) += cmd_mp.o
137obj-$(CONFIG_CMD_MTDPARTS) += cmd_mtdparts.o
138obj-$(CONFIG_CMD_NAND) += cmd_nand.o
139obj-$(CONFIG_CMD_NET) += cmd_net.o
140obj-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
141obj-$(CONFIG_CMD_OTP) += cmd_otp.o
142obj-$(CONFIG_CMD_PART) += cmd_part.o
Grant Likelyc0d32e92007-09-24 09:05:31 -0600143ifdef CONFIG_PCI
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900144obj-$(CONFIG_CMD_PCI) += cmd_pci.o
Grant Likelyc0d32e92007-09-24 09:05:31 -0600145endif
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900146obj-y += cmd_pcmcia.o
147obj-$(CONFIG_CMD_PORTIO) += cmd_portio.o
148obj-$(CONFIG_CMD_PXE) += cmd_pxe.o
149obj-$(CONFIG_CMD_READ) += cmd_read.o
150obj-$(CONFIG_CMD_REGINFO) += cmd_reginfo.o
151obj-$(CONFIG_CMD_REISER) += cmd_reiser.o
152obj-$(CONFIG_SANDBOX) += cmd_sandbox.o
153obj-$(CONFIG_CMD_SATA) += cmd_sata.o
154obj-$(CONFIG_CMD_SF) += cmd_sf.o
155obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
156obj-$(CONFIG_CMD_SHA1SUM) += cmd_sha1sum.o
157obj-$(CONFIG_CMD_SETEXPR) += cmd_setexpr.o
158obj-$(CONFIG_CMD_SOFTSWITCH) += cmd_softswitch.o
159obj-$(CONFIG_CMD_SPI) += cmd_spi.o
160obj-$(CONFIG_CMD_SPIBOOTLDR) += cmd_spibootldr.o
161obj-$(CONFIG_CMD_STRINGS) += cmd_strings.o
162obj-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o
163obj-$(CONFIG_CMD_TIME) += cmd_time.o
164obj-$(CONFIG_CMD_TRACE) += cmd_trace.o
165obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_test.o
166obj-$(CONFIG_CMD_TPM) += cmd_tpm.o
167obj-$(CONFIG_CMD_TSI148) += cmd_tsi148.o
168obj-$(CONFIG_CMD_UBI) += cmd_ubi.o
169obj-$(CONFIG_CMD_UBIFS) += cmd_ubifs.o
170obj-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o
171obj-$(CONFIG_CMD_UNZIP) += cmd_unzip.o
Patrice Bouchandbd1f7ef2014-02-15 22:19:57 -0700172ifdef CONFIG_LZMA
173obj-$(CONFIG_CMD_LZMADEC) += cmd_lzmadec.o
174endif
Jean-Christophe PLAGNIOL-VILLARD178e1182008-08-29 21:53:57 +0200175ifdef CONFIG_CMD_USB
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900176obj-y += cmd_usb.o
177obj-y += usb.o usb_hub.o
178obj-$(CONFIG_USB_STORAGE) += usb_storage.o
Jean-Christophe PLAGNIOL-VILLARD178e1182008-08-29 21:53:57 +0200179endif
Sebastian Siewior9d4471e2014-05-05 15:08:10 -0500180obj-$(CONFIG_CMD_FASTBOOT) += cmd_fastboot.o
Christian Gmeiner9f9eec32014-11-12 14:35:04 +0100181obj-$(CONFIG_CMD_FS_UUID) += cmd_fs_uuid.o
Sebastian Siewior9d4471e2014-05-05 15:08:10 -0500182
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900183obj-$(CONFIG_CMD_USB_MASS_STORAGE) += cmd_usb_mass_storage.o
184obj-$(CONFIG_CMD_THOR_DOWNLOAD) += cmd_thordown.o
185obj-$(CONFIG_CMD_XIMG) += cmd_ximg.o
186obj-$(CONFIG_YAFFS2) += cmd_yaffs2.o
187obj-$(CONFIG_CMD_SPL) += cmd_spl.o
188obj-$(CONFIG_CMD_ZIP) += cmd_zip.o
189obj-$(CONFIG_CMD_ZFS) += cmd_zfs.o
Jean-Christophe PLAGNIOL-VILLARD74ba1ba2008-10-31 12:12:12 +0100190
191# others
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900192obj-$(CONFIG_BOOTSTAGE) += bootstage.o
193obj-$(CONFIG_CONSOLE_MUX) += iomux.o
194obj-y += flash.o
195obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
196obj-$(CONFIG_I2C_EDID) += edid.o
197obj-$(CONFIG_KALLSYMS) += kallsyms.o
198obj-y += splash.o
Nikita Kiryanovf6ebf6a2014-12-08 17:14:45 +0200199obj-$(CONFIG_LCD) += lcd.o lcd_console.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900200obj-$(CONFIG_LYNXKDI) += lynxkdi.o
201obj-$(CONFIG_MENU) += menu.o
202obj-$(CONFIG_MODEM_SUPPORT) += modem.o
203obj-$(CONFIG_UPDATE_TFTP) += update.o
204obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
205obj-$(CONFIG_CMD_DFU) += cmd_dfu.o
206obj-$(CONFIG_CMD_GPT) += cmd_gpt.o
Aneesh V55fc5b62011-07-13 05:11:06 +0000207endif
208
Matt Porter79bfa732012-01-31 12:03:57 +0000209ifdef CONFIG_SPL_BUILD
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900210obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
211obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
212obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
Dan Murphycb367e12014-01-16 11:23:30 -0600213ifdef CONFIG_SPL_USB_HOST_SUPPORT
214obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
215obj-$(CONFIG_USB_STORAGE) += usb_storage.o
216endif
Dan Murphy0c3ab852014-02-03 06:59:01 -0600217ifdef CONFIG_SPL_SATA_SUPPORT
218obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
219endif
Tom Rinicc52ab02014-07-18 11:51:34 -0400220# environment
221ifdef CONFIG_SPL_ENV_SUPPORT
222obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o
223obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o
224obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900225obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
226obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
Felipe Balbi78cc6732014-09-23 10:44:17 -0500227obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900228obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
229obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
230obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
Matt Porter79bfa732012-01-31 12:03:57 +0000231endif
Ying Zhang602f7d32013-05-20 14:07:25 +0800232endif
233# core command
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900234obj-y += cmd_nvedit.o
Ying Zhang602f7d32013-05-20 14:07:25 +0800235#environment
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900236obj-y += env_common.o
Ying Zhangded52a42013-05-20 14:07:26 +0800237#others
Masahiro Yamada69682982014-09-18 15:43:41 +0900238obj-$(CONFIG_DDR_SPD) += ddr_spd.o
239obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900240obj-$(CONFIG_HWCONFIG) += hwconfig.o
241obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
242obj-y += console.o
Vadim Bendeburye5d15792014-02-27 13:26:02 -0700243obj-$(CONFIG_CROS_EC) += cros_ec.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900244obj-y += dlmalloc.o
Simon Glass94890462014-11-10 17:16:43 -0700245ifdef CONFIG_SYS_MALLOC_F_LEN
246obj-y += malloc_simple.o
247endif
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900248obj-y += image.o
Sebastian Siewior686d6672014-05-05 15:08:09 -0500249obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900250obj-$(CONFIG_OF_LIBFDT) += image-fdt.o
251obj-$(CONFIG_FIT) += image-fit.o
252obj-$(CONFIG_FIT_SIGNATURE) += image-sig.o
Simon Glass4dc47ca2014-06-11 23:29:41 -0600253obj-$(CONFIG_IO_TRACE) += iotrace.o
Masahiro Yamada55c745d2013-10-17 17:34:59 +0900254obj-y += memsize.o
255obj-y += stdio.o
wdenke831ad52002-10-17 21:52:26 +0000256
Steve Rae792ac482014-08-26 11:47:27 -0700257# This option is not just y/n - it can have a numeric value
258ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
Steve Raec6015672014-08-26 11:47:30 -0700259obj-y += aboot.o
Steve Rae792ac482014-08-26 11:47:27 -0700260obj-y += fb_mmc.o
261endif
262
Ruchika Gupta4345a572014-10-07 15:46:20 +0530263obj-$(CONFIG_CMD_BLOB) += cmd_blob.o
264
Alison Wangd02389c2014-12-03 15:00:44 +0800265# We always have this since drivers/ddr/fs/interactive.c needs it
266obj-y += cli_simple.o
267
268obj-y += cli.o
269obj-y += cli_readline.o
270obj-y += command.o
271obj-y += s_record.o
272obj-y += xyzModem.o
273obj-y += cmd_disk.o
274
Masahiro Yamada0d68fb12014-02-04 17:24:28 +0900275CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)