Tom Rini | 10e4779 | 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 | d62379d | 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 | 178e118 | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 6 | # core |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 7 | ifndef CONFIG_SPL_BUILD |
Simon Glass | b1beb11 | 2015-10-19 06:49:56 -0600 | [diff] [blame] | 8 | obj-y += init/ |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 9 | obj-y += main.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 10 | obj-y += exports.o |
Tom Rini | 5a34753 | 2023-10-26 14:31:19 -0400 | [diff] [blame] | 11 | obj-y += cli_getch.o cli_simple.o cli_readline.o |
Francis Laniel | 529cb2c | 2023-12-22 22:02:29 +0100 | [diff] [blame] | 12 | obj-$(CONFIG_HUSH_OLD_PARSER) += cli_hush.o |
Francis Laniel | 3b66e57 | 2023-12-22 22:02:32 +0100 | [diff] [blame] | 13 | obj-$(CONFIG_HUSH_MODERN_PARSER) += cli_hush_modern.o |
Masahiro Yamada | 622a01c | 2016-06-20 17:33:39 +0900 | [diff] [blame] | 14 | obj-$(CONFIG_AUTOBOOT) += autoboot.o |
Caleb Connolly | 2259c29 | 2024-01-09 11:51:09 +0000 | [diff] [blame] | 15 | obj-$(CONFIG_BUTTON_CMD) += button_cmd.o |
Tom Rini | 6885dc8 | 2023-10-26 14:31:13 -0400 | [diff] [blame] | 16 | obj-y += version.o |
Simon Glass | 7b6a95a | 2014-04-10 20:01:28 -0600 | [diff] [blame] | 17 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 18 | # # boards |
Simon Glass | 3bba650 | 2016-05-14 18:49:35 -0600 | [diff] [blame] | 19 | obj-y += board_f.o |
| 20 | obj-y += board_r.o |
Masahiro Yamada | 9607f7a | 2015-01-14 17:07:05 +0900 | [diff] [blame] | 21 | obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o |
| 22 | obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o |
Simon Glass | c45e359 | 2013-03-11 06:49:53 +0000 | [diff] [blame] | 23 | |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 24 | obj-$(CONFIG_MII) += miiphyutil.o |
| 25 | obj-$(CONFIG_CMD_MII) += miiphyutil.o |
| 26 | obj-$(CONFIG_PHYLIB) += miiphyutil.o |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 27 | |
Tom Rini | 4d8202b | 2022-06-12 20:02:03 -0400 | [diff] [blame] | 28 | obj-$(CONFIG_USB_HOST) += usb.o usb_hub.o |
Heinrich Schuchardt | b629c96 | 2023-01-25 19:40:15 +0100 | [diff] [blame] | 29 | obj-$(CONFIG_USB_GADGET) += usb.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 30 | obj-$(CONFIG_USB_STORAGE) += usb_storage.o |
Fabrice Gasnier | cd809b1 | 2022-12-12 11:44:35 +0100 | [diff] [blame] | 31 | obj-$(CONFIG_USB_ONBOARD_HUB) += usb_onboard_hub.o |
Jean-Christophe PLAGNIOL-VILLARD | 74ba1ba | 2008-10-31 12:12:12 +0100 | [diff] [blame] | 32 | |
| 33 | # others |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 34 | obj-$(CONFIG_CONSOLE_MUX) += iomux.o |
Masahiro Yamada | 8c61eb0 | 2017-02-11 22:43:55 +0900 | [diff] [blame] | 35 | obj-$(CONFIG_MTD_NOR_FLASH) += flash.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 36 | obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o |
| 37 | obj-$(CONFIG_I2C_EDID) += edid.o |
| 38 | obj-$(CONFIG_KALLSYMS) += kallsyms.o |
| 39 | obj-y += splash.o |
Nikita Kiryanov | 7f9ceea | 2015-01-14 10:42:54 +0200 | [diff] [blame] | 40 | obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 41 | obj-$(CONFIG_MENU) += menu.o |
AKASHI Takahiro | 768d58d | 2020-10-29 13:47:43 +0900 | [diff] [blame] | 42 | obj-$(CONFIG_UPDATE_COMMON) += update.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 43 | obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o |
Przemyslaw Marczak | 4d56977 | 2015-04-20 20:07:43 +0200 | [diff] [blame] | 44 | |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 45 | endif # !CONFIG_SPL_BUILD |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 46 | |
Philipp Tomsich | 0cbf114 | 2017-09-11 22:04:09 +0200 | [diff] [blame] | 47 | obj-$(CONFIG_$(SPL_TPL_)BOOTSTAGE) += bootstage.o |
Simon Glass | 712bd2d | 2018-11-15 18:43:50 -0700 | [diff] [blame] | 48 | obj-$(CONFIG_$(SPL_TPL_)BLOBLIST) += bloblist.o |
Simon Glass | 01154cb | 2017-05-22 05:05:35 -0600 | [diff] [blame] | 49 | |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 50 | ifdef CONFIG_SPL_BUILD |
Andrew F. Davis | 6d932e6 | 2019-01-17 13:43:02 -0600 | [diff] [blame] | 51 | ifdef CONFIG_SPL_DFU |
Marek Vasut | 7f8d436 | 2018-02-16 16:41:18 +0100 | [diff] [blame] | 52 | obj-$(CONFIG_DFU_OVER_USB) += dfu.o |
Marek Vasut | ea84f80 | 2018-02-16 16:41:17 +0100 | [diff] [blame] | 53 | endif |
Simon Glass | 041a0ac | 2021-08-08 12:20:30 -0600 | [diff] [blame] | 54 | obj-$(CONFIG_SPL_NET) += miiphyutil.o |
Jean-Jacques Hiblot | 57118f6 | 2018-12-04 11:30:57 +0100 | [diff] [blame] | 55 | |
Tom Rini | 4d8202b | 2022-06-12 20:02:03 -0400 | [diff] [blame] | 56 | obj-$(CONFIG_SPL_USB_HOST) += usb.o usb_hub.o |
Abel Vesa | 5ea11ba5 | 2019-02-01 16:40:07 +0000 | [diff] [blame] | 57 | obj-$(CONFIG_SPL_USB_STORAGE) += usb_storage.o |
Tom Rini | 4d8202b | 2022-06-12 20:02:03 -0400 | [diff] [blame] | 58 | obj-$(CONFIG_SPL_MUSB_NEW) += usb.o |
Nikhil M Jain | 1c2dead | 2023-04-20 17:41:04 +0530 | [diff] [blame] | 59 | obj-$(CONFIG_SPL_SPLASH_SCREEN) += splash.o |
| 60 | obj-$(CONFIG_SPL_SPLASH_SOURCE) += splash_source.o |
Simon Glass | a4bea1f | 2018-11-06 15:21:28 -0700 | [diff] [blame] | 61 | endif # CONFIG_SPL_BUILD |
| 62 | |
Ying Zhang | ded52a4 | 2013-05-20 14:07:26 +0800 | [diff] [blame] | 63 | #others |
Masahiro Yamada | 6968298 | 2014-09-18 15:43:41 +0900 | [diff] [blame] | 64 | obj-$(CONFIG_DDR_SPD) += ddr_spd.o |
| 65 | obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 66 | obj-$(CONFIG_HWCONFIG) += hwconfig.o |
| 67 | obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o |
Heiko Schocher | 62cb156 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 68 | ifdef CONFIG_SPL_BUILD |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 69 | ifdef CONFIG_TPL_BUILD |
Simon Glass | f4d6039 | 2021-08-08 12:20:12 -0600 | [diff] [blame] | 70 | obj-$(CONFIG_TPL_SERIAL) += console.o |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 71 | else |
Simon Glass | f4d6039 | 2021-08-08 12:20:12 -0600 | [diff] [blame] | 72 | obj-$(CONFIG_SPL_SERIAL) += console.o |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 73 | endif |
Heiko Schocher | 62cb156 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 74 | else |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 75 | obj-y += console.o |
Simon Glass | a4bea1f | 2018-11-06 15:21:28 -0700 | [diff] [blame] | 76 | endif # CONFIG_SPL_BUILD |
| 77 | |
Vadim Bendebury | e5d1579 | 2014-02-27 13:26:02 -0700 | [diff] [blame] | 78 | obj-$(CONFIG_CROS_EC) += cros_ec.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 79 | obj-y += dlmalloc.o |
Simon Glass | adad2d0 | 2023-09-26 08:14:27 -0600 | [diff] [blame] | 80 | obj-$(CONFIG_$(SPL_TPL_)SYS_MALLOC_F) += malloc_simple.o |
Simon Glass | a4bea1f | 2018-11-06 15:21:28 -0700 | [diff] [blame] | 81 | |
Stefan Roese | 036f89a | 2022-09-02 13:57:48 +0200 | [diff] [blame] | 82 | obj-$(CONFIG_CYCLIC) += cyclic.o |
Simon Glass | aa4bce9 | 2022-03-04 08:43:00 -0700 | [diff] [blame] | 83 | obj-$(CONFIG_$(SPL_TPL_)EVENT) += event.o |
| 84 | |
Alexandru Gagniuc | 97464ff | 2021-09-02 19:54:19 -0500 | [diff] [blame] | 85 | obj-$(CONFIG_$(SPL_TPL_)HASH) += hash.o |
Simon Glass | 4dc47ca | 2014-06-11 23:29:41 -0600 | [diff] [blame] | 86 | obj-$(CONFIG_IO_TRACE) += iotrace.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 87 | obj-y += memsize.o |
| 88 | obj-y += stdio.o |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 89 | |
Nikita Kiryanov | 37dda1c | 2016-04-16 17:55:03 +0300 | [diff] [blame] | 90 | ifdef CONFIG_CMD_EEPROM_LAYOUT |
| 91 | obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o |
| 92 | endif |
Alison Wang | d02389c | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 93 | |
| 94 | obj-y += cli.o |
Simon Glass | 7646d5b | 2023-01-06 08:52:20 -0600 | [diff] [blame] | 95 | obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_getch.o cli_simple.o cli_readline.o |
| 96 | obj-$(CONFIG_STM32MP1_DDR_INTERACTIVE) += cli_getch.o cli_simple.o cli_readline.o |
Marek Vasut | 7f8d436 | 2018-02-16 16:41:18 +0100 | [diff] [blame] | 97 | obj-$(CONFIG_DFU_OVER_USB) += dfu.o |
Alison Wang | d02389c | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 98 | obj-y += command.o |
Simon Glass | b56cdc0 | 2018-11-15 18:43:49 -0700 | [diff] [blame] | 99 | obj-$(CONFIG_$(SPL_TPL_)LOG) += log.o |
| 100 | obj-$(CONFIG_$(SPL_TPL_)LOG_CONSOLE) += log_console.o |
Heinrich Schuchardt | 2db9516 | 2020-02-26 21:48:16 +0100 | [diff] [blame] | 101 | obj-$(CONFIG_$(SPL_TPL_)LOG_SYSLOG) += log_syslog.o |
Alison Wang | d02389c | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 102 | obj-y += s_record.o |
Jun Nie | 06bc2da | 2018-02-13 16:07:55 +0800 | [diff] [blame] | 103 | obj-$(CONFIG_CMD_LOADB) += xyzModem.o |
| 104 | obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += xyzModem.o |
Igor Opaniuk | bb4aac4 | 2018-06-03 21:56:38 +0300 | [diff] [blame] | 105 | |
Simon Glass | c4cbec6 | 2022-04-30 00:56:49 -0600 | [diff] [blame] | 106 | obj-$(CONFIG_$(SPL_TPL_)AVB_VERIFY) += avb_verify.o |
Joel Peshkin | 369d87a | 2021-04-11 11:21:58 +0200 | [diff] [blame] | 107 | obj-$(CONFIG_$(SPL_TPL_)STACKPROTECTOR) += stackprot.o |
Jorge Ramirez-Ortiz | 9127d8b | 2021-02-14 16:27:23 +0100 | [diff] [blame] | 108 | obj-$(CONFIG_SCP03) += scp03.o |
Asherah Connor | 4ffa95d | 2021-03-19 18:21:40 +1100 | [diff] [blame] | 109 | |
| 110 | obj-$(CONFIG_QFW) += qfw.o |