wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 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 | d79de1d | 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 | 178e118 | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 8 | # core |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 9 | ifndef CONFIG_SPL_BUILD |
Simon Glass | b1beb11 | 2015-10-19 06:49:56 -0600 | [diff] [blame] | 10 | obj-y += init/ |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 11 | obj-y += main.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 12 | obj-y += exports.o |
| 13 | obj-y += hash.o |
Simon Glass | 66b8c8b | 2014-04-10 20:01:26 -0600 | [diff] [blame] | 14 | ifdef CONFIG_SYS_HUSH_PARSER |
| 15 | obj-y += cli_hush.o |
| 16 | endif |
| 17 | |
Masahiro Yamada | 622a01c | 2016-06-20 17:33:39 +0900 | [diff] [blame^] | 18 | obj-$(CONFIG_AUTOBOOT) += autoboot.o |
Simon Glass | 7b6a95a | 2014-04-10 20:01:28 -0600 | [diff] [blame] | 19 | |
Simon Glass | 399ed9a | 2014-04-10 20:01:30 -0600 | [diff] [blame] | 20 | # This option is not just y/n - it can have a numeric value |
| 21 | ifdef CONFIG_BOOT_RETRY_TIME |
| 22 | obj-y += bootretry.o |
| 23 | endif |
| 24 | |
Simon Glass | c45e359 | 2013-03-11 06:49:53 +0000 | [diff] [blame] | 25 | # boards |
Simon Glass | 3bba650 | 2016-05-14 18:49:35 -0600 | [diff] [blame] | 26 | obj-y += board_f.o |
| 27 | obj-y += board_r.o |
Masahiro Yamada | 9607f7a | 2015-01-14 17:07:05 +0900 | [diff] [blame] | 28 | obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o |
| 29 | obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o |
Simon Glass | c45e359 | 2013-03-11 06:49:53 +0000 | [diff] [blame] | 30 | |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 31 | obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o |
Jean-Christophe PLAGNIOL-VILLARD | aea6f85 | 2008-08-30 23:47:38 +0200 | [diff] [blame] | 32 | |
Jean-Christophe PLAGNIOL-VILLARD | 178e118 | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 33 | # environment |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 34 | obj-y += env_attr.o |
| 35 | obj-y += env_callback.o |
| 36 | obj-y += env_flags.o |
| 37 | obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o |
| 38 | obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o |
| 39 | extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o |
| 40 | obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o |
| 41 | extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o |
| 42 | obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o |
| 43 | obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o |
| 44 | obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o |
| 45 | obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o |
Stuart Longland | d1f4063 | 2016-02-23 15:51:26 +1000 | [diff] [blame] | 46 | obj-$(CONFIG_ENV_IS_IN_EXT4) += env_ext4.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 47 | obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o |
| 48 | obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o |
| 49 | obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o |
Peng Fan | 5da543c | 2016-04-03 21:52:13 +0800 | [diff] [blame] | 50 | obj-$(CONFIG_ENV_IS_IN_SATA) += env_sata.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 51 | obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o |
| 52 | obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o |
| 53 | obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o |
| 54 | obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o |
Jean-Christophe PLAGNIOL-VILLARD | 178e118 | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 55 | |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 56 | obj-$(CONFIG_CMD_BEDBUG) += bedbug.o |
Simon Glass | 8b42692 | 2016-02-22 22:55:45 -0700 | [diff] [blame] | 57 | obj-$(CONFIG_$(SPL_)OF_LIBFDT) += fdt_support.o |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 58 | |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 59 | obj-$(CONFIG_MII) += miiphyutil.o |
| 60 | obj-$(CONFIG_CMD_MII) += miiphyutil.o |
| 61 | obj-$(CONFIG_PHYLIB) += miiphyutil.o |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 62 | |
Jean-Christophe PLAGNIOL-VILLARD | 178e118 | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 63 | ifdef CONFIG_CMD_USB |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 64 | obj-y += usb.o usb_hub.o |
| 65 | obj-$(CONFIG_USB_STORAGE) += usb_storage.o |
Jean-Christophe PLAGNIOL-VILLARD | 178e118 | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 66 | endif |
Jean-Christophe PLAGNIOL-VILLARD | 74ba1ba | 2008-10-31 12:12:12 +0100 | [diff] [blame] | 67 | |
| 68 | # others |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 69 | obj-$(CONFIG_BOOTSTAGE) += bootstage.o |
| 70 | obj-$(CONFIG_CONSOLE_MUX) += iomux.o |
| 71 | obj-y += flash.o |
| 72 | obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o |
| 73 | obj-$(CONFIG_I2C_EDID) += edid.o |
| 74 | obj-$(CONFIG_KALLSYMS) += kallsyms.o |
| 75 | obj-y += splash.o |
Nikita Kiryanov | 7f9ceea | 2015-01-14 10:42:54 +0200 | [diff] [blame] | 76 | obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o |
Simon Glass | 68f5bf3 | 2016-01-18 19:52:16 -0700 | [diff] [blame] | 77 | ifndef CONFIG_DM_VIDEO |
Nikita Kiryanov | f6ebf6a | 2014-12-08 17:14:45 +0200 | [diff] [blame] | 78 | obj-$(CONFIG_LCD) += lcd.o lcd_console.o |
Simon Glass | 68f5bf3 | 2016-01-18 19:52:16 -0700 | [diff] [blame] | 79 | endif |
Hannes Petermaier | a3c8e86 | 2015-03-27 08:01:38 +0100 | [diff] [blame] | 80 | obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o |
Nikita Kiryanov | b071e4c | 2015-02-03 13:32:31 +0200 | [diff] [blame] | 81 | obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 82 | obj-$(CONFIG_LYNXKDI) += lynxkdi.o |
| 83 | obj-$(CONFIG_MENU) += menu.o |
Simon Glass | 3665a40 | 2016-05-01 11:36:11 -0600 | [diff] [blame] | 84 | obj-$(CONFIG_CMD_SATA) += sata.o |
Simon Glass | c8e89ab | 2016-05-01 11:36:09 -0600 | [diff] [blame] | 85 | obj-$(CONFIG_SCSI) += scsi.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 86 | obj-$(CONFIG_UPDATE_TFTP) += update.o |
Lukasz Majewski | e32125a | 2015-08-24 00:21:47 +0200 | [diff] [blame] | 87 | obj-$(CONFIG_DFU_TFTP) += update.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 88 | obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o |
Przemyslaw Marczak | 4d56977 | 2015-04-20 20:07:43 +0200 | [diff] [blame] | 89 | |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 90 | endif # !CONFIG_SPL_BUILD |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 91 | |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 92 | ifdef CONFIG_SPL_BUILD |
Teddy Reed | 5021e3c | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 93 | obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 94 | obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o |
| 95 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o |
| 96 | obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o |
Stefan Roese | 74c8389 | 2015-11-26 13:38:15 +0100 | [diff] [blame] | 97 | obj-$(CONFIG_SPL_OF_TRANSLATE) += fdt_support.o |
Dan Murphy | cb367e1 | 2014-01-16 11:23:30 -0600 | [diff] [blame] | 98 | ifdef CONFIG_SPL_USB_HOST_SUPPORT |
| 99 | obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o |
| 100 | obj-$(CONFIG_USB_STORAGE) += usb_storage.o |
| 101 | endif |
Tom Rini | cc52ab0 | 2014-07-18 11:51:34 -0400 | [diff] [blame] | 102 | # environment |
| 103 | ifdef CONFIG_SPL_ENV_SUPPORT |
| 104 | obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o |
| 105 | obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o |
| 106 | obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 107 | obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o |
| 108 | obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o |
Felipe Balbi | 78cc673 | 2014-09-23 10:44:17 -0500 | [diff] [blame] | 109 | obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o |
Stuart Longland | d1f4063 | 2016-02-23 15:51:26 +1000 | [diff] [blame] | 110 | obj-$(CONFIG_ENV_IS_IN_EXT4) += env_ext4.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 111 | obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o |
| 112 | obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o |
| 113 | obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 114 | endif |
Simon Glass | c8e89ab | 2016-05-01 11:36:09 -0600 | [diff] [blame] | 115 | ifdef CONFIG_SPL_SATA_SUPPORT |
| 116 | obj-$(CONFIG_SCSI) += scsi.o |
| 117 | endif |
Ying Zhang | 602f7d3 | 2013-05-20 14:07:25 +0800 | [diff] [blame] | 118 | endif |
Ying Zhang | 602f7d3 | 2013-05-20 14:07:25 +0800 | [diff] [blame] | 119 | #environment |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 120 | obj-y += env_common.o |
Ying Zhang | ded52a4 | 2013-05-20 14:07:26 +0800 | [diff] [blame] | 121 | #others |
Masahiro Yamada | 6968298 | 2014-09-18 15:43:41 +0900 | [diff] [blame] | 122 | obj-$(CONFIG_DDR_SPD) += ddr_spd.o |
| 123 | obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 124 | obj-$(CONFIG_HWCONFIG) += hwconfig.o |
| 125 | obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o |
Heiko Schocher | 62cb156 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 126 | ifdef CONFIG_SPL_BUILD |
| 127 | obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o |
| 128 | else |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 129 | obj-y += console.o |
Heiko Schocher | 62cb156 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 130 | endif |
Vadim Bendebury | e5d1579 | 2014-02-27 13:26:02 -0700 | [diff] [blame] | 131 | obj-$(CONFIG_CROS_EC) += cros_ec.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 132 | obj-y += dlmalloc.o |
Simon Glass | 9489046 | 2014-11-10 17:16:43 -0700 | [diff] [blame] | 133 | ifdef CONFIG_SYS_MALLOC_F_LEN |
| 134 | obj-y += malloc_simple.o |
| 135 | endif |
Simon Glass | e11f0ef | 2016-05-01 11:36:10 -0600 | [diff] [blame] | 136 | obj-$(CONFIG_CMD_IDE) += ide.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 137 | obj-y += image.o |
Sebastian Siewior | 686d667 | 2014-05-05 15:08:09 -0500 | [diff] [blame] | 138 | obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o |
Simon Glass | 8b42692 | 2016-02-22 22:55:45 -0700 | [diff] [blame] | 139 | obj-$(CONFIG_$(SPL_)OF_LIBFDT) += image-fdt.o |
Simon Glass | e3ee2fb | 2016-02-22 22:55:43 -0700 | [diff] [blame] | 140 | obj-$(CONFIG_$(SPL_)FIT) += image-fit.o |
| 141 | obj-$(CONFIG_$(SPL_)FIT_SIGNATURE) += image-sig.o |
Simon Glass | 4dc47ca | 2014-06-11 23:29:41 -0600 | [diff] [blame] | 142 | obj-$(CONFIG_IO_TRACE) += iotrace.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 143 | obj-y += memsize.o |
| 144 | obj-y += stdio.o |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 145 | |
Steve Rae | 792ac48 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 146 | # This option is not just y/n - it can have a numeric value |
Maxime Ripard | 33602a9 | 2015-10-15 14:34:17 +0200 | [diff] [blame] | 147 | ifdef CONFIG_FASTBOOT_FLASH |
Maxime Ripard | 6af49bc | 2015-10-15 14:34:19 +0200 | [diff] [blame] | 148 | obj-y += image-sparse.o |
Maxime Ripard | 33602a9 | 2015-10-15 14:34:17 +0200 | [diff] [blame] | 149 | ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV |
Steve Rae | 792ac48 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 150 | obj-y += fb_mmc.o |
| 151 | endif |
Maxime Ripard | 33602a9 | 2015-10-15 14:34:17 +0200 | [diff] [blame] | 152 | ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV |
| 153 | obj-y += fb_nand.o |
| 154 | endif |
| 155 | endif |
Steve Rae | 792ac48 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 156 | |
Nikita Kiryanov | 37dda1c | 2016-04-16 17:55:03 +0300 | [diff] [blame] | 157 | ifdef CONFIG_CMD_EEPROM_LAYOUT |
| 158 | obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o |
| 159 | endif |
Alison Wang | d02389c | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 160 | # We always have this since drivers/ddr/fs/interactive.c needs it |
Simon Glass | 0ea4959 | 2016-03-13 19:07:34 -0600 | [diff] [blame] | 161 | obj-$(CONFIG_CMDLINE) += cli_simple.o |
Alison Wang | d02389c | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 162 | |
| 163 | obj-y += cli.o |
Simon Glass | 0ea4959 | 2016-03-13 19:07:34 -0600 | [diff] [blame] | 164 | obj-$(CONFIG_CMDLINE) += cli_readline.o |
Alison Wang | d02389c | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 165 | obj-y += command.o |
| 166 | obj-y += s_record.o |
| 167 | obj-y += xyzModem.o |
Alison Wang | d02389c | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 168 | |
Masahiro Yamada | 0d68fb1 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 169 | CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null) |