Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 2 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 3 | # (C) Copyright 2004-2006 |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 5 | |
Jean-Christophe PLAGNIOL-VILLARD | 578118b | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 6 | # core |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 7 | ifndef CONFIG_SPL_BUILD |
Simon Glass | af6bbd4 | 2015-10-19 06:49:56 -0600 | [diff] [blame] | 8 | obj-y += init/ |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 9 | obj-y += main.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 10 | obj-y += exports.o |
Simon Glass | d70f919 | 2017-05-17 09:05:34 -0600 | [diff] [blame] | 11 | obj-$(CONFIG_HASH) += hash.o |
Masahiro Yamada | f1f9d4f | 2016-06-21 02:11:19 +0900 | [diff] [blame] | 12 | obj-$(CONFIG_HUSH_PARSER) += cli_hush.o |
Masahiro Yamada | 41598c8 | 2016-06-20 17:33:39 +0900 | [diff] [blame] | 13 | obj-$(CONFIG_AUTOBOOT) += autoboot.o |
Simon Glass | 66ded17 | 2014-04-10 20:01:28 -0600 | [diff] [blame] | 14 | |
Simon Glass | 0098e17 | 2014-04-10 20:01:30 -0600 | [diff] [blame] | 15 | # This option is not just y/n - it can have a numeric value |
| 16 | ifdef CONFIG_BOOT_RETRY_TIME |
| 17 | obj-y += bootretry.o |
| 18 | endif |
| 19 | |
Simon Glass | 0649cd0 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 20 | # # boards |
Simon Glass | 9be2e79 | 2016-05-14 18:49:35 -0600 | [diff] [blame] | 21 | obj-y += board_f.o |
| 22 | obj-y += board_r.o |
Masahiro Yamada | 0365ffc | 2015-01-14 17:07:05 +0900 | [diff] [blame] | 23 | obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o |
| 24 | obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o |
Simon Glass | 1938f4a | 2013-03-11 06:49:53 +0000 | [diff] [blame] | 25 | |
Simon Glass | 72a8cf8 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 26 | obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o |
Tom Rini | 5db2890 | 2016-08-12 08:31:15 -0400 | [diff] [blame] | 27 | obj-$(CONFIG_CMD_BOOTZ) += bootm.o bootm_os.o |
| 28 | obj-$(CONFIG_CMD_BOOTI) += bootm.o bootm_os.o |
Jean-Christophe PLAGNIOL-VILLARD | 2d02d91 | 2008-08-30 23:47:38 +0200 | [diff] [blame] | 29 | |
Simon Glass | 72a8cf8 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 30 | obj-$(CONFIG_CMD_BEDBUG) += bedbug.o |
Philipp Tomsich | f94e643 | 2017-07-04 11:16:47 +0200 | [diff] [blame] | 31 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 32 | obj-$(CONFIG_MII) += miiphyutil.o |
| 33 | obj-$(CONFIG_CMD_MII) += miiphyutil.o |
| 34 | obj-$(CONFIG_PHYLIB) += miiphyutil.o |
Simon Glass | 72a8cf8 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 35 | |
Sven Schwermer | ab58170 | 2018-11-21 08:43:55 +0100 | [diff] [blame] | 36 | ifdef CONFIG_USB |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 37 | obj-y += usb.o usb_hub.o |
| 38 | obj-$(CONFIG_USB_STORAGE) += usb_storage.o |
Jean-Christophe PLAGNIOL-VILLARD | d6e9ee9 | 2008-08-13 01:40:38 +0200 | [diff] [blame] | 39 | endif |
Jean-Christophe PLAGNIOL-VILLARD | a80b21d | 2008-10-31 12:12:12 +0100 | [diff] [blame] | 40 | |
| 41 | # others |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 42 | obj-$(CONFIG_CONSOLE_MUX) += iomux.o |
Masahiro Yamada | 554c73c | 2017-02-11 22:43:55 +0900 | [diff] [blame] | 43 | obj-$(CONFIG_MTD_NOR_FLASH) += flash.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 44 | obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o |
| 45 | obj-$(CONFIG_I2C_EDID) += edid.o |
| 46 | obj-$(CONFIG_KALLSYMS) += kallsyms.o |
| 47 | obj-y += splash.o |
Nikita Kiryanov | f82eb2f | 2015-01-14 10:42:54 +0200 | [diff] [blame] | 48 | obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o |
Simon Glass | 6cbf5de | 2016-01-18 19:52:16 -0700 | [diff] [blame] | 49 | ifndef CONFIG_DM_VIDEO |
Nikita Kiryanov | 904672e | 2014-12-08 17:14:45 +0200 | [diff] [blame] | 50 | obj-$(CONFIG_LCD) += lcd.o lcd_console.o |
Simon Glass | 6cbf5de | 2016-01-18 19:52:16 -0700 | [diff] [blame] | 51 | endif |
Hannes Petermaier | 604c7d4 | 2015-03-27 08:01:38 +0100 | [diff] [blame] | 52 | obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o |
Nikita Kiryanov | 033167c | 2015-02-03 13:32:31 +0200 | [diff] [blame] | 53 | obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 54 | obj-$(CONFIG_LYNXKDI) += lynxkdi.o |
| 55 | obj-$(CONFIG_MENU) += menu.o |
AKASHI Takahiro | 3149e52 | 2020-10-29 13:47:43 +0900 | [diff] [blame] | 56 | obj-$(CONFIG_UPDATE_COMMON) += update.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 57 | obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o |
Tom Rini | 82b9dc6 | 2017-05-08 22:14:34 -0400 | [diff] [blame] | 58 | obj-$(CONFIG_CMDLINE) += cli_readline.o cli_simple.o |
Przemyslaw Marczak | d89fdcf | 2015-04-20 20:07:43 +0200 | [diff] [blame] | 59 | |
Simon Glass | 72a8cf8 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 60 | endif # !CONFIG_SPL_BUILD |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 61 | |
Philipp Tomsich | 148a139 | 2017-09-11 22:04:09 +0200 | [diff] [blame] | 62 | obj-$(CONFIG_$(SPL_TPL_)BOOTSTAGE) += bootstage.o |
Simon Glass | 9f407d4 | 2018-11-15 18:43:50 -0700 | [diff] [blame] | 63 | obj-$(CONFIG_$(SPL_TPL_)BLOBLIST) += bloblist.o |
Simon Glass | 824bb1b | 2017-05-22 05:05:35 -0600 | [diff] [blame] | 64 | |
Matt Porter | 24de357 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 65 | ifdef CONFIG_SPL_BUILD |
Andrew F. Davis | 6536ca4 | 2019-01-17 13:43:02 -0600 | [diff] [blame] | 66 | ifdef CONFIG_SPL_DFU |
Marek Vasut | bb4059a | 2018-02-16 16:41:18 +0100 | [diff] [blame] | 67 | obj-$(CONFIG_DFU_OVER_USB) += dfu.o |
Marek Vasut | 0f44d33 | 2018-02-16 16:41:17 +0100 | [diff] [blame] | 68 | endif |
Teddy Reed | 51c14cd | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 69 | obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o |
Simon Glass | c0126bd | 2018-11-06 15:21:28 -0700 | [diff] [blame] | 70 | obj-$(CONFIG_TPL_HASH_SUPPORT) += hash.o |
Cooper Jr., Franklin | 3863f84 | 2017-06-16 17:25:05 -0500 | [diff] [blame] | 71 | obj-$(CONFIG_SPL_LOAD_FIT) += common_fit.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 72 | obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o |
Philipp Tomsich | f94e643 | 2017-07-04 11:16:47 +0200 | [diff] [blame] | 73 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o |
Jean-Jacques Hiblot | 7d98dbc | 2018-12-04 11:30:57 +0100 | [diff] [blame] | 74 | |
Dan Murphy | 8cffe5b | 2014-01-16 11:23:30 -0600 | [diff] [blame] | 75 | ifdef CONFIG_SPL_USB_HOST_SUPPORT |
Abel Vesa | 7953601 | 2019-02-01 16:40:07 +0000 | [diff] [blame] | 76 | obj-y += usb.o |
| 77 | obj-y += usb_hub.o |
| 78 | obj-$(CONFIG_SPL_USB_STORAGE) += usb_storage.o |
Jean-Jacques Hiblot | 7d98dbc | 2018-12-04 11:30:57 +0100 | [diff] [blame] | 79 | else |
| 80 | obj-$(CONFIG_USB_MUSB_HOST) += usb.o |
Dan Murphy | 8cffe5b | 2014-01-16 11:23:30 -0600 | [diff] [blame] | 81 | endif |
Simon Glass | c0126bd | 2018-11-06 15:21:28 -0700 | [diff] [blame] | 82 | endif # CONFIG_SPL_BUILD |
| 83 | |
Ying Zhang | f90572d | 2013-05-20 14:07:26 +0800 | [diff] [blame] | 84 | #others |
Masahiro Yamada | f494e0a | 2014-09-18 15:43:41 +0900 | [diff] [blame] | 85 | obj-$(CONFIG_DDR_SPD) += ddr_spd.o |
| 86 | obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 87 | obj-$(CONFIG_HWCONFIG) += hwconfig.o |
| 88 | obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o |
Heiko Schocher | 80402f3 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 89 | ifdef CONFIG_SPL_BUILD |
Simon Glass | 76f1f38 | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 90 | ifdef CONFIG_TPL_BUILD |
| 91 | obj-$(CONFIG_TPL_SERIAL_SUPPORT) += console.o |
| 92 | else |
Heiko Schocher | 80402f3 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 93 | obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o |
Simon Glass | 76f1f38 | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 94 | endif |
Heiko Schocher | 80402f3 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 95 | else |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 96 | obj-y += console.o |
Simon Glass | c0126bd | 2018-11-06 15:21:28 -0700 | [diff] [blame] | 97 | endif # CONFIG_SPL_BUILD |
| 98 | |
Vadim Bendebury | 41364f0 | 2014-02-27 13:26:02 -0700 | [diff] [blame] | 99 | obj-$(CONFIG_CROS_EC) += cros_ec.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 100 | obj-y += dlmalloc.o |
Andy Yan | f1896c4 | 2017-07-24 17:43:34 +0800 | [diff] [blame] | 101 | ifdef CONFIG_SYS_MALLOC_F |
Simon Glass | c0126bd | 2018-11-06 15:21:28 -0700 | [diff] [blame] | 102 | ifneq ($(CONFIG_$(SPL_TPL_)SYS_MALLOC_F_LEN),0) |
Simon Glass | c9356be | 2014-11-10 17:16:43 -0700 | [diff] [blame] | 103 | obj-y += malloc_simple.o |
| 104 | endif |
Andy Yan | f1896c4 | 2017-07-24 17:43:34 +0800 | [diff] [blame] | 105 | endif |
Simon Glass | c0126bd | 2018-11-06 15:21:28 -0700 | [diff] [blame] | 106 | |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 107 | obj-y += image.o |
Ruslan Trofymenko | d65e8da | 2019-07-05 15:37:32 +0300 | [diff] [blame] | 108 | obj-$(CONFIG_ANDROID_AB) += android_ab.o |
Sam Protsenko | c3bfad8 | 2020-01-24 17:53:40 +0200 | [diff] [blame] | 109 | obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o image-android-dt.o |
Philipp Tomsich | f94e643 | 2017-07-04 11:16:47 +0200 | [diff] [blame] | 110 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o |
Masahiro Yamada | 3e69db1 | 2020-04-16 18:30:17 +0900 | [diff] [blame] | 111 | obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += fdt_region.o |
Philipp Tomsich | f94e643 | 2017-07-04 11:16:47 +0200 | [diff] [blame] | 112 | obj-$(CONFIG_$(SPL_TPL_)FIT) += image-fit.o |
Jean-Jacques Hiblot | 1195559 | 2017-09-15 12:57:24 +0200 | [diff] [blame] | 113 | obj-$(CONFIG_$(SPL_)MULTI_DTB_FIT) += boot_fit.o common_fit.o |
Heinrich Schuchardt | 6441164 | 2020-04-15 18:46:21 +0200 | [diff] [blame] | 114 | obj-$(CONFIG_$(SPL_TPL_)IMAGE_SIGN_INFO) += image-sig.o |
AKASHI Takahiro | b983cc2 | 2020-02-21 15:12:55 +0900 | [diff] [blame] | 115 | obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += image-fit-sig.o |
Philippe Reynes | 7298e42 | 2019-12-18 18:25:41 +0100 | [diff] [blame] | 116 | obj-$(CONFIG_$(SPL_TPL_)FIT_CIPHER) += image-cipher.o |
Simon Glass | aa53233 | 2014-06-11 23:29:41 -0600 | [diff] [blame] | 117 | obj-$(CONFIG_IO_TRACE) += iotrace.o |
Masahiro Yamada | 0ccf54c | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 118 | obj-y += memsize.o |
| 119 | obj-y += stdio.o |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 120 | |
Eugeniu Rosca | b84acf1 | 2019-12-24 17:51:06 +0100 | [diff] [blame] | 121 | obj-$(CONFIG_CMD_ADTIMG) += image-android-dt.o |
Sam Protsenko | d03e76a | 2018-08-16 23:34:13 +0300 | [diff] [blame] | 122 | |
Nikita Kiryanov | aa9e604 | 2016-04-16 17:55:03 +0300 | [diff] [blame] | 123 | ifdef CONFIG_CMD_EEPROM_LAYOUT |
| 124 | obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o |
| 125 | endif |
Alison Wang | ed39218 | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 126 | |
| 127 | obj-y += cli.o |
Tom Rini | 82b9dc6 | 2017-05-08 22:14:34 -0400 | [diff] [blame] | 128 | obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o |
Patrick Delaunay | 01a7510 | 2019-04-10 14:09:27 +0200 | [diff] [blame] | 129 | obj-$(CONFIG_STM32MP1_DDR_INTERACTIVE) += cli_simple.o cli_readline.o |
Marek Vasut | bb4059a | 2018-02-16 16:41:18 +0100 | [diff] [blame] | 130 | obj-$(CONFIG_DFU_OVER_USB) += dfu.o |
Alison Wang | ed39218 | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 131 | obj-y += command.o |
Simon Glass | 4d8d305 | 2018-11-15 18:43:49 -0700 | [diff] [blame] | 132 | obj-$(CONFIG_$(SPL_TPL_)LOG) += log.o |
| 133 | obj-$(CONFIG_$(SPL_TPL_)LOG_CONSOLE) += log_console.o |
Heinrich Schuchardt | befadde | 2020-02-26 21:48:16 +0100 | [diff] [blame] | 134 | obj-$(CONFIG_$(SPL_TPL_)LOG_SYSLOG) += log_syslog.o |
Alison Wang | ed39218 | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 135 | obj-y += s_record.o |
Jun Nie | fb3148a | 2018-02-13 16:07:55 +0800 | [diff] [blame] | 136 | obj-$(CONFIG_CMD_LOADB) += xyzModem.o |
| 137 | obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += xyzModem.o |
Igor Opaniuk | 3af30e4 | 2018-06-03 21:56:38 +0300 | [diff] [blame] | 138 | |
Igor Opaniuk | b0aa74a | 2018-07-17 14:33:25 +0300 | [diff] [blame] | 139 | obj-$(CONFIG_AVB_VERIFY) += avb_verify.o |
Jorge Ramirez-Ortiz | 166363f | 2021-02-14 16:27:23 +0100 | [diff] [blame] | 140 | obj-$(CONFIG_SCP03) += scp03.o |