wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2004-2006 |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Jean-Christophe PLAGNIOL-VILLARD | 578118b | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 8 | # core |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 9 | ifndef CONFIG_SPL_BUILD |
Simon Glass | af6bbd4 | 2015-10-19 06:49:56 -0600 | [diff] [blame] | 10 | obj-y += init/ |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 11 | obj-y += main.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 12 | obj-y += exports.o |
| 13 | obj-y += hash.o |
Simon Glass | 6493ccc | 2014-04-10 20:01:26 -0600 | [diff] [blame] | 14 | ifdef CONFIG_SYS_HUSH_PARSER |
| 15 | obj-y += cli_hush.o |
| 16 | endif |
| 17 | |
Simon Glass | 66ded17 | 2014-04-10 20:01:28 -0600 | [diff] [blame] | 18 | # This option is not just y/n - it can have a numeric value |
| 19 | ifdef CONFIG_BOOTDELAY |
| 20 | obj-y += autoboot.o |
| 21 | endif |
| 22 | |
Simon Glass | 0098e17 | 2014-04-10 20:01:30 -0600 | [diff] [blame] | 23 | # This option is not just y/n - it can have a numeric value |
| 24 | ifdef CONFIG_BOOT_RETRY_TIME |
| 25 | obj-y += bootretry.o |
| 26 | endif |
| 27 | |
Simon Glass | 1938f4a | 2013-03-11 06:49:53 +0000 | [diff] [blame] | 28 | # boards |
Simon Glass | 9be2e79 | 2016-05-14 18:49:35 -0600 | [diff] [blame] | 29 | obj-y += board_f.o |
| 30 | obj-y += board_r.o |
Masahiro Yamada | 0365ffc | 2015-01-14 17:07:05 +0900 | [diff] [blame] | 31 | obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o |
| 32 | obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o |
Simon Glass | 1938f4a | 2013-03-11 06:49:53 +0000 | [diff] [blame] | 33 | |
Simon Glass | 72a8cf8 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 34 | obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o |
Jean-Christophe PLAGNIOL-VILLARD | 2d02d91 | 2008-08-30 23:47:38 +0200 | [diff] [blame] | 35 | |
Jean-Christophe PLAGNIOL-VILLARD | 578118b | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 36 | # environment |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 37 | obj-y += env_attr.o |
| 38 | obj-y += env_callback.o |
| 39 | obj-y += env_flags.o |
| 40 | obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o |
| 41 | obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o |
| 42 | extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o |
| 43 | obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o |
| 44 | extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o |
| 45 | obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o |
| 46 | obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o |
| 47 | obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o |
| 48 | obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o |
Stuart Longland | fd1000b | 2016-02-23 15:51:26 +1000 | [diff] [blame] | 49 | obj-$(CONFIG_ENV_IS_IN_EXT4) += env_ext4.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 50 | obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o |
| 51 | obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o |
| 52 | obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o |
Peng Fan | 125d193 | 2016-04-03 21:52:13 +0800 | [diff] [blame] | 53 | obj-$(CONFIG_ENV_IS_IN_SATA) += env_sata.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 54 | obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o |
| 55 | obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o |
| 56 | obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o |
| 57 | obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o |
Jean-Christophe PLAGNIOL-VILLARD | 578118b | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 58 | |
Simon Glass | 72a8cf8 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 59 | obj-$(CONFIG_CMD_BEDBUG) += bedbug.o |
Simon Glass | aa34fbc | 2016-02-22 22:55:45 -0700 | [diff] [blame] | 60 | obj-$(CONFIG_$(SPL_)OF_LIBFDT) += fdt_support.o |
Simon Glass | 72a8cf8 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 61 | |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 62 | obj-$(CONFIG_MII) += miiphyutil.o |
| 63 | obj-$(CONFIG_CMD_MII) += miiphyutil.o |
| 64 | obj-$(CONFIG_PHYLIB) += miiphyutil.o |
Simon Glass | 72a8cf8 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 65 | |
Jean-Christophe PLAGNIOL-VILLARD | d6e9ee9 | 2008-08-13 01:40:38 +0200 | [diff] [blame] | 66 | ifdef CONFIG_CMD_USB |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 67 | obj-y += usb.o usb_hub.o |
| 68 | obj-$(CONFIG_USB_STORAGE) += usb_storage.o |
Jean-Christophe PLAGNIOL-VILLARD | d6e9ee9 | 2008-08-13 01:40:38 +0200 | [diff] [blame] | 69 | endif |
Jean-Christophe PLAGNIOL-VILLARD | a80b21d | 2008-10-31 12:12:12 +0100 | [diff] [blame] | 70 | |
| 71 | # others |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 72 | obj-$(CONFIG_BOOTSTAGE) += bootstage.o |
| 73 | obj-$(CONFIG_CONSOLE_MUX) += iomux.o |
| 74 | obj-y += flash.o |
| 75 | obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o |
| 76 | obj-$(CONFIG_I2C_EDID) += edid.o |
| 77 | obj-$(CONFIG_KALLSYMS) += kallsyms.o |
| 78 | obj-y += splash.o |
Nikita Kiryanov | f82eb2f | 2015-01-14 10:42:54 +0200 | [diff] [blame] | 79 | obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o |
Simon Glass | 6cbf5de | 2016-01-18 19:52:16 -0700 | [diff] [blame] | 80 | ifndef CONFIG_DM_VIDEO |
Nikita Kiryanov | 904672e | 2014-12-08 17:14:45 +0200 | [diff] [blame] | 81 | obj-$(CONFIG_LCD) += lcd.o lcd_console.o |
Simon Glass | 6cbf5de | 2016-01-18 19:52:16 -0700 | [diff] [blame] | 82 | endif |
Hannes Petermaier | 604c7d4 | 2015-03-27 08:01:38 +0100 | [diff] [blame] | 83 | obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o |
Nikita Kiryanov | 033167c | 2015-02-03 13:32:31 +0200 | [diff] [blame] | 84 | obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 85 | obj-$(CONFIG_LYNXKDI) += lynxkdi.o |
| 86 | obj-$(CONFIG_MENU) += menu.o |
Simon Glass | d97dc8a | 2016-05-01 11:36:11 -0600 | [diff] [blame] | 87 | obj-$(CONFIG_CMD_SATA) += sata.o |
Simon Glass | 11f610e | 2016-05-01 11:36:09 -0600 | [diff] [blame] | 88 | obj-$(CONFIG_SCSI) += scsi.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 89 | obj-$(CONFIG_UPDATE_TFTP) += update.o |
Lukasz Majewski | c7ff552 | 2015-08-24 00:21:47 +0200 | [diff] [blame] | 90 | obj-$(CONFIG_DFU_TFTP) += update.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 91 | obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o |
Przemyslaw Marczak | d89fdcf | 2015-04-20 20:07:43 +0200 | [diff] [blame] | 92 | |
Simon Glass | 72a8cf8 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 93 | endif # !CONFIG_SPL_BUILD |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 94 | |
Matt Porter | 24de357 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 95 | ifdef CONFIG_SPL_BUILD |
Teddy Reed | 51c14cd | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 96 | obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 97 | obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o |
| 98 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o |
| 99 | obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o |
Stefan Roese | 63ce348 | 2015-11-26 13:38:15 +0100 | [diff] [blame] | 100 | obj-$(CONFIG_SPL_OF_TRANSLATE) += fdt_support.o |
Dan Murphy | 8cffe5b | 2014-01-16 11:23:30 -0600 | [diff] [blame] | 101 | ifdef CONFIG_SPL_USB_HOST_SUPPORT |
| 102 | obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o |
| 103 | obj-$(CONFIG_USB_STORAGE) += usb_storage.o |
| 104 | endif |
Tom Rini | 00e3853 | 2014-07-18 11:51:34 -0400 | [diff] [blame] | 105 | # environment |
| 106 | ifdef CONFIG_SPL_ENV_SUPPORT |
| 107 | obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o |
| 108 | obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o |
| 109 | obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 110 | obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o |
| 111 | obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o |
Felipe Balbi | 41f1d40 | 2014-09-23 10:44:17 -0500 | [diff] [blame] | 112 | obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o |
Stuart Longland | fd1000b | 2016-02-23 15:51:26 +1000 | [diff] [blame] | 113 | obj-$(CONFIG_ENV_IS_IN_EXT4) += env_ext4.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 114 | obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o |
| 115 | obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o |
| 116 | obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o |
Matt Porter | 24de357 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 117 | endif |
Simon Glass | 11f610e | 2016-05-01 11:36:09 -0600 | [diff] [blame] | 118 | ifdef CONFIG_SPL_SATA_SUPPORT |
| 119 | obj-$(CONFIG_SCSI) += scsi.o |
| 120 | endif |
Ying Zhang | ba1bee4 | 2013-05-20 14:07:25 +0800 | [diff] [blame] | 121 | endif |
Ying Zhang | ba1bee4 | 2013-05-20 14:07:25 +0800 | [diff] [blame] | 122 | #environment |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 123 | obj-y += env_common.o |
Ying Zhang | f90572d | 2013-05-20 14:07:26 +0800 | [diff] [blame] | 124 | #others |
Masahiro Yamada | f494e0a | 2014-09-18 15:43:41 +0900 | [diff] [blame] | 125 | obj-$(CONFIG_DDR_SPD) += ddr_spd.o |
| 126 | obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 127 | obj-$(CONFIG_HWCONFIG) += hwconfig.o |
| 128 | obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o |
Heiko Schocher | 80402f3 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 129 | ifdef CONFIG_SPL_BUILD |
| 130 | obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o |
| 131 | else |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 132 | obj-y += console.o |
Heiko Schocher | 80402f3 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 133 | endif |
Vadim Bendebury | 41364f0 | 2014-02-27 13:26:02 -0700 | [diff] [blame] | 134 | obj-$(CONFIG_CROS_EC) += cros_ec.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 135 | obj-y += dlmalloc.o |
Simon Glass | c9356be | 2014-11-10 17:16:43 -0700 | [diff] [blame] | 136 | ifdef CONFIG_SYS_MALLOC_F_LEN |
| 137 | obj-y += malloc_simple.o |
| 138 | endif |
Simon Glass | e9be1ee | 2016-05-01 11:36:10 -0600 | [diff] [blame] | 139 | obj-$(CONFIG_CMD_IDE) += ide.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 140 | obj-y += image.o |
Sebastian Siewior | 9ace3fc | 2014-05-05 15:08:09 -0500 | [diff] [blame] | 141 | obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o |
Simon Glass | aa34fbc | 2016-02-22 22:55:45 -0700 | [diff] [blame] | 142 | obj-$(CONFIG_$(SPL_)OF_LIBFDT) += image-fdt.o |
Simon Glass | 73223f0 | 2016-02-22 22:55:43 -0700 | [diff] [blame] | 143 | obj-$(CONFIG_$(SPL_)FIT) += image-fit.o |
| 144 | obj-$(CONFIG_$(SPL_)FIT_SIGNATURE) += image-sig.o |
Simon Glass | aa53233 | 2014-06-11 23:29:41 -0600 | [diff] [blame] | 145 | obj-$(CONFIG_IO_TRACE) += iotrace.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 146 | obj-y += memsize.o |
| 147 | obj-y += stdio.o |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 148 | |
Steve Rae | c0aebb3 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 149 | # This option is not just y/n - it can have a numeric value |
Maxime Ripard | bf8940d | 2015-10-15 14:34:17 +0200 | [diff] [blame] | 150 | ifdef CONFIG_FASTBOOT_FLASH |
Maxime Ripard | 3d4ef38 | 2015-10-15 14:34:19 +0200 | [diff] [blame] | 151 | obj-y += image-sparse.o |
Maxime Ripard | bf8940d | 2015-10-15 14:34:17 +0200 | [diff] [blame] | 152 | ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV |
Steve Rae | c0aebb3 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 153 | obj-y += fb_mmc.o |
| 154 | endif |
Maxime Ripard | bf8940d | 2015-10-15 14:34:17 +0200 | [diff] [blame] | 155 | ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV |
| 156 | obj-y += fb_nand.o |
| 157 | endif |
| 158 | endif |
Steve Rae | c0aebb3 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 159 | |
Nikita Kiryanov | aa9e604 | 2016-04-16 17:55:03 +0300 | [diff] [blame] | 160 | ifdef CONFIG_CMD_EEPROM_LAYOUT |
| 161 | obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o |
| 162 | endif |
Alison Wang | ed39218 | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 163 | # We always have this since drivers/ddr/fs/interactive.c needs it |
Simon Glass | 1872c67 | 2016-03-13 19:07:34 -0600 | [diff] [blame] | 164 | obj-$(CONFIG_CMDLINE) += cli_simple.o |
Alison Wang | ed39218 | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 165 | |
| 166 | obj-y += cli.o |
Simon Glass | 1872c67 | 2016-03-13 19:07:34 -0600 | [diff] [blame] | 167 | obj-$(CONFIG_CMDLINE) += cli_readline.o |
Alison Wang | ed39218 | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 168 | obj-y += command.o |
| 169 | obj-y += s_record.o |
| 170 | obj-y += xyzModem.o |
Alison Wang | ed39218 | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 171 | |
Masahiro Yamada | 6825a95 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 172 | CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null) |