blob: 425658c4cdf9adfa3ae7b2d096e13cd22371eeff [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
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090011obj-y += exports.o
12obj-y += hash.o
Simon Glass6493ccc2014-04-10 20:01:26 -060013ifdef CONFIG_SYS_HUSH_PARSER
14obj-y += cli_hush.o
15endif
16
Simon Glass66ded172014-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 Glass0098e172014-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 Glass1938f4a2013-03-11 06:49:53 +000027# boards
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090028obj-$(CONFIG_SYS_GENERIC_BOARD) += board_f.o
29obj-$(CONFIG_SYS_GENERIC_BOARD) += board_r.o
Masahiro Yamada0365ffc2015-01-14 17:07:05 +090030obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o
31obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o
Simon Glass1938f4a2013-03-11 06:49:53 +000032
Jean-Christophe PLAGNIOL-VILLARDa80b21d2008-10-31 12:12:12 +010033# core command
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090034obj-y += cmd_boot.o
Simon Glassb6396402014-06-12 07:24:46 -060035obj-$(CONFIG_CMD_BOOTM) += cmd_bootm.o bootm.o bootm_os.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090036obj-y += cmd_help.o
37obj-y += cmd_version.o
Jean-Christophe PLAGNIOL-VILLARD2d02d912008-08-30 23:47:38 +020038
Jean-Christophe PLAGNIOL-VILLARD578118b2008-08-29 21:53:57 +020039# environment
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090040obj-y += env_attr.o
41obj-y += env_callback.o
42obj-y += env_flags.o
43obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
44obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
45extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
46obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o
47extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
48obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o
49obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
50obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
51obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
52obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
53obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
54obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
55obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
56obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o
57obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o
58obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
Jean-Christophe PLAGNIOL-VILLARD578118b2008-08-29 21:53:57 +020059
60# command
Marek Vasutb401b732014-03-05 19:58:39 +010061obj-$(CONFIG_CMD_AES) += cmd_aes.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090062obj-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
Linus Walleij4bb66502015-04-05 01:48:31 +020063obj-$(CONFIG_CMD_ARMFLASH) += cmd_armflash.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090064obj-$(CONFIG_SOURCE) += cmd_source.o
65obj-$(CONFIG_CMD_SOURCE) += cmd_source.o
66obj-$(CONFIG_CMD_BDI) += cmd_bdinfo.o
67obj-$(CONFIG_CMD_BEDBUG) += bedbug.o cmd_bedbug.o
68obj-$(CONFIG_CMD_BMP) += cmd_bmp.o
69obj-$(CONFIG_CMD_BOOTMENU) += cmd_bootmenu.o
70obj-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
71obj-$(CONFIG_CMD_BOOTSTAGE) += cmd_bootstage.o
72obj-$(CONFIG_CMD_CACHE) += cmd_cache.o
73obj-$(CONFIG_CMD_CBFS) += cmd_cbfs.o
Michal Simek08d0d6f2013-11-21 13:39:02 -080074obj-$(CONFIG_CMD_CLK) += cmd_clk.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090075obj-$(CONFIG_CMD_CONSOLE) += cmd_console.o
76obj-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o
Simon Glass8e2fac02015-04-28 20:25:11 -060077obj-$(CONFIG_CMD_CPU) += cmd_cpu.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090078obj-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o
79obj-$(CONFIG_CMD_DATE) += cmd_date.o
Simon Glass39f76112014-02-26 15:59:23 -070080obj-$(CONFIG_CMD_DEMO) += cmd_demo.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090081obj-$(CONFIG_CMD_SOUND) += cmd_sound.o
Grant Likely4a437192007-09-24 09:05:31 -060082ifdef CONFIG_4xx
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090083obj-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o
Grant Likely4a437192007-09-24 09:05:31 -060084endif
85ifdef CONFIG_POST
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090086obj-$(CONFIG_CMD_DIAG) += cmd_diag.o
Grant Likely4a437192007-09-24 09:05:31 -060087endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090088obj-$(CONFIG_CMD_DISPLAY) += cmd_display.o
89obj-$(CONFIG_CMD_DTT) += cmd_dtt.o
90obj-$(CONFIG_CMD_ECHO) += cmd_echo.o
91obj-$(CONFIG_ENV_IS_IN_EEPROM) += cmd_eeprom.o
92obj-$(CONFIG_CMD_EEPROM) += cmd_eeprom.o
93obj-$(CONFIG_CMD_ELF) += cmd_elf.o
94obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_exit.o
95obj-$(CONFIG_CMD_EXT4) += cmd_ext4.o
96obj-$(CONFIG_CMD_EXT2) += cmd_ext2.o
97obj-$(CONFIG_CMD_FAT) += cmd_fat.o
Tom Rini1530f6f2014-02-21 08:42:02 -050098obj-$(CONFIG_CMD_FDC) += cmd_fdc.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +090099obj-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900100obj-$(CONFIG_CMD_FITUPD) += cmd_fitupd.o
101obj-$(CONFIG_CMD_FLASH) += cmd_flash.o
Grant Likely4a437192007-09-24 09:05:31 -0600102ifdef CONFIG_FPGA
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900103obj-$(CONFIG_CMD_FPGA) += cmd_fpga.o
Grant Likely4a437192007-09-24 09:05:31 -0600104endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900105obj-$(CONFIG_CMD_FPGAD) += cmd_fpgad.o
106obj-$(CONFIG_CMD_FS_GENERIC) += cmd_fs.o
107obj-$(CONFIG_CMD_FUSE) += cmd_fuse.o
108obj-$(CONFIG_CMD_GETTIME) += cmd_gettime.o
109obj-$(CONFIG_CMD_GPIO) += cmd_gpio.o
110obj-$(CONFIG_CMD_I2C) += cmd_i2c.o
Simon Glassaa532332014-06-11 23:29:41 -0600111obj-$(CONFIG_CMD_IOTRACE) += cmd_iotrace.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900112obj-$(CONFIG_CMD_HASH) += cmd_hash.o
113obj-$(CONFIG_CMD_IDE) += cmd_ide.o
114obj-$(CONFIG_CMD_IMMAP) += cmd_immap.o
115obj-$(CONFIG_CMD_INI) += cmd_ini.o
116obj-$(CONFIG_CMD_IRQ) += cmd_irq.o
117obj-$(CONFIG_CMD_ITEST) += cmd_itest.o
118obj-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o
119obj-$(CONFIG_CMD_CRAMFS) += cmd_cramfs.o
120obj-$(CONFIG_CMD_LDRINFO) += cmd_ldrinfo.o
121obj-$(CONFIG_CMD_LED) += cmd_led.o
122obj-$(CONFIG_CMD_LICENSE) += cmd_license.o
123obj-y += cmd_load.o
124obj-$(CONFIG_LOGBUFFER) += cmd_log.o
125obj-$(CONFIG_ID_EEPROM) += cmd_mac.o
126obj-$(CONFIG_CMD_MD5SUM) += cmd_md5sum.o
127obj-$(CONFIG_CMD_MEMORY) += cmd_mem.o
128obj-$(CONFIG_CMD_IO) += cmd_io.o
129obj-$(CONFIG_CMD_MFSL) += cmd_mfsl.o
130obj-$(CONFIG_MII) += miiphyutil.o
131obj-$(CONFIG_CMD_MII) += miiphyutil.o
132obj-$(CONFIG_PHYLIB) += miiphyutil.o
133obj-$(CONFIG_CMD_MII) += cmd_mii.o
Andy Fleming995daa02011-03-21 18:03:22 -0500134ifdef CONFIG_PHYLIB
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900135obj-$(CONFIG_CMD_MII) += cmd_mdio.o
Andy Fleming995daa02011-03-21 18:03:22 -0500136endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900137obj-$(CONFIG_CMD_MISC) += cmd_misc.o
138obj-$(CONFIG_CMD_MMC) += cmd_mmc.o
139obj-$(CONFIG_CMD_MMC_SPI) += cmd_mmc_spi.o
140obj-$(CONFIG_MP) += cmd_mp.o
141obj-$(CONFIG_CMD_MTDPARTS) += cmd_mtdparts.o
142obj-$(CONFIG_CMD_NAND) += cmd_nand.o
143obj-$(CONFIG_CMD_NET) += cmd_net.o
144obj-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
145obj-$(CONFIG_CMD_OTP) += cmd_otp.o
146obj-$(CONFIG_CMD_PART) += cmd_part.o
Grant Likely4a437192007-09-24 09:05:31 -0600147ifdef CONFIG_PCI
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900148obj-$(CONFIG_CMD_PCI) += cmd_pci.o
Grant Likely4a437192007-09-24 09:05:31 -0600149endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900150obj-y += cmd_pcmcia.o
151obj-$(CONFIG_CMD_PORTIO) += cmd_portio.o
152obj-$(CONFIG_CMD_PXE) += cmd_pxe.o
153obj-$(CONFIG_CMD_READ) += cmd_read.o
154obj-$(CONFIG_CMD_REGINFO) += cmd_reginfo.o
155obj-$(CONFIG_CMD_REISER) += cmd_reiser.o
Sjoerd Simonsbacfb1d2015-04-13 22:54:22 +0200156obj-$(CONFIG_SANDBOX) += cmd_host.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900157obj-$(CONFIG_CMD_SATA) += cmd_sata.o
158obj-$(CONFIG_CMD_SF) += cmd_sf.o
159obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
160obj-$(CONFIG_CMD_SHA1SUM) += cmd_sha1sum.o
161obj-$(CONFIG_CMD_SETEXPR) += cmd_setexpr.o
162obj-$(CONFIG_CMD_SOFTSWITCH) += cmd_softswitch.o
163obj-$(CONFIG_CMD_SPI) += cmd_spi.o
164obj-$(CONFIG_CMD_SPIBOOTLDR) += cmd_spibootldr.o
165obj-$(CONFIG_CMD_STRINGS) += cmd_strings.o
166obj-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o
167obj-$(CONFIG_CMD_TIME) += cmd_time.o
168obj-$(CONFIG_CMD_TRACE) += cmd_trace.o
169obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_test.o
170obj-$(CONFIG_CMD_TPM) += cmd_tpm.o
171obj-$(CONFIG_CMD_TSI148) += cmd_tsi148.o
172obj-$(CONFIG_CMD_UBI) += cmd_ubi.o
173obj-$(CONFIG_CMD_UBIFS) += cmd_ubifs.o
174obj-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o
175obj-$(CONFIG_CMD_UNZIP) += cmd_unzip.o
Patrice Bouchand5527f832014-02-15 22:19:57 -0700176ifdef CONFIG_LZMA
177obj-$(CONFIG_CMD_LZMADEC) += cmd_lzmadec.o
178endif
Jean-Christophe PLAGNIOL-VILLARDd6e9ee92008-08-13 01:40:38 +0200179ifdef CONFIG_CMD_USB
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900180obj-y += cmd_usb.o
181obj-y += usb.o usb_hub.o
182obj-$(CONFIG_USB_STORAGE) += usb_storage.o
Jean-Christophe PLAGNIOL-VILLARDd6e9ee92008-08-13 01:40:38 +0200183endif
Sebastian Siewior3aab70a2014-05-05 15:08:10 -0500184obj-$(CONFIG_CMD_FASTBOOT) += cmd_fastboot.o
Christian Gmeiner59e890e2014-11-12 14:35:04 +0100185obj-$(CONFIG_CMD_FS_UUID) += cmd_fs_uuid.o
Sebastian Siewior3aab70a2014-05-05 15:08:10 -0500186
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900187obj-$(CONFIG_CMD_USB_MASS_STORAGE) += cmd_usb_mass_storage.o
188obj-$(CONFIG_CMD_THOR_DOWNLOAD) += cmd_thordown.o
189obj-$(CONFIG_CMD_XIMG) += cmd_ximg.o
190obj-$(CONFIG_YAFFS2) += cmd_yaffs2.o
191obj-$(CONFIG_CMD_SPL) += cmd_spl.o
192obj-$(CONFIG_CMD_ZIP) += cmd_zip.o
193obj-$(CONFIG_CMD_ZFS) += cmd_zfs.o
Jean-Christophe PLAGNIOL-VILLARDa80b21d2008-10-31 12:12:12 +0100194
195# others
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900196obj-$(CONFIG_BOOTSTAGE) += bootstage.o
197obj-$(CONFIG_CONSOLE_MUX) += iomux.o
198obj-y += flash.o
199obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
200obj-$(CONFIG_I2C_EDID) += edid.o
201obj-$(CONFIG_KALLSYMS) += kallsyms.o
202obj-y += splash.o
Nikita Kiryanovf82eb2f2015-01-14 10:42:54 +0200203obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
Nikita Kiryanov904672e2014-12-08 17:14:45 +0200204obj-$(CONFIG_LCD) += lcd.o lcd_console.o
Hannes Petermaier604c7d42015-03-27 08:01:38 +0100205obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
Nikita Kiryanov033167c2015-02-03 13:32:31 +0200206obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900207obj-$(CONFIG_LYNXKDI) += lynxkdi.o
208obj-$(CONFIG_MENU) += menu.o
209obj-$(CONFIG_MODEM_SUPPORT) += modem.o
210obj-$(CONFIG_UPDATE_TFTP) += update.o
211obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
212obj-$(CONFIG_CMD_DFU) += cmd_dfu.o
213obj-$(CONFIG_CMD_GPT) += cmd_gpt.o
Przemyslaw Marczakd89fdcf2015-04-20 20:07:43 +0200214
215# Power
216obj-$(CONFIG_CMD_PMIC) += cmd_pmic.o
Aneesh V05bad4a2011-07-13 05:11:06 +0000217endif
218
Matt Porter24de3572012-01-31 12:03:57 +0000219ifdef CONFIG_SPL_BUILD
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900220obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
221obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
222obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
Dan Murphy8cffe5b2014-01-16 11:23:30 -0600223ifdef CONFIG_SPL_USB_HOST_SUPPORT
224obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
225obj-$(CONFIG_USB_STORAGE) += usb_storage.o
226endif
Dan Murphyfff40a72014-02-03 06:59:01 -0600227ifdef CONFIG_SPL_SATA_SUPPORT
228obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
229endif
Tom Rini00e38532014-07-18 11:51:34 -0400230# environment
231ifdef CONFIG_SPL_ENV_SUPPORT
232obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o
233obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o
234obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900235obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
236obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
Felipe Balbi41f1d402014-09-23 10:44:17 -0500237obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900238obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
239obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
240obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
Matt Porter24de3572012-01-31 12:03:57 +0000241endif
Ying Zhangba1bee42013-05-20 14:07:25 +0800242endif
243# core command
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900244obj-y += cmd_nvedit.o
Ying Zhangba1bee42013-05-20 14:07:25 +0800245#environment
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900246obj-y += env_common.o
Ying Zhangf90572d2013-05-20 14:07:26 +0800247#others
Masahiro Yamadaf494e0a2014-09-18 15:43:41 +0900248obj-$(CONFIG_DDR_SPD) += ddr_spd.o
249obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900250obj-$(CONFIG_HWCONFIG) += hwconfig.o
251obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
252obj-y += console.o
Vadim Bendebury41364f02014-02-27 13:26:02 -0700253obj-$(CONFIG_CROS_EC) += cros_ec.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900254obj-y += dlmalloc.o
Simon Glassc9356be2014-11-10 17:16:43 -0700255ifdef CONFIG_SYS_MALLOC_F_LEN
256obj-y += malloc_simple.o
257endif
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900258obj-y += image.o
Sebastian Siewior9ace3fc2014-05-05 15:08:09 -0500259obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900260obj-$(CONFIG_OF_LIBFDT) += image-fdt.o
261obj-$(CONFIG_FIT) += image-fit.o
262obj-$(CONFIG_FIT_SIGNATURE) += image-sig.o
Simon Glassaa532332014-06-11 23:29:41 -0600263obj-$(CONFIG_IO_TRACE) += iotrace.o
Masahiro Yamada0ccf54c2013-10-17 17:34:59 +0900264obj-y += memsize.o
265obj-y += stdio.o
wdenke831ad52002-10-17 21:52:26 +0000266
Steve Raec0aebb32014-08-26 11:47:27 -0700267# This option is not just y/n - it can have a numeric value
268ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
Steve Raee5bf9872014-08-26 11:47:30 -0700269obj-y += aboot.o
Steve Raec0aebb32014-08-26 11:47:27 -0700270obj-y += fb_mmc.o
271endif
272
Ruchika Guptac5de15c2014-10-07 15:46:20 +0530273obj-$(CONFIG_CMD_BLOB) += cmd_blob.o
274
Alison Wanged392182014-12-03 15:00:44 +0800275# We always have this since drivers/ddr/fs/interactive.c needs it
276obj-y += cli_simple.o
277
278obj-y += cli.o
279obj-y += cli_readline.o
280obj-y += command.o
281obj-y += s_record.o
282obj-y += xyzModem.o
283obj-y += cmd_disk.o
284
Masahiro Yamada6825a952014-02-04 17:24:28 +0900285CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)