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 |
Simon Glass | b22ec7a | 2017-05-17 09:05:34 -0600 | [diff] [blame] | 13 | obj-$(CONFIG_HASH) += hash.o |
Masahiro Yamada | 17a48e4 | 2016-06-21 02:11:19 +0900 | [diff] [blame] | 14 | obj-$(CONFIG_HUSH_PARSER) += cli_hush.o |
Masahiro Yamada | 622a01c | 2016-06-20 17:33:39 +0900 | [diff] [blame] | 15 | obj-$(CONFIG_AUTOBOOT) += autoboot.o |
Simon Glass | 7b6a95a | 2014-04-10 20:01:28 -0600 | [diff] [blame] | 16 | |
Simon Glass | 399ed9a | 2014-04-10 20:01:30 -0600 | [diff] [blame] | 17 | # This option is not just y/n - it can have a numeric value |
| 18 | ifdef CONFIG_BOOT_RETRY_TIME |
| 19 | obj-y += bootretry.o |
| 20 | endif |
| 21 | |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 22 | # # boards |
Simon Glass | 3bba650 | 2016-05-14 18:49:35 -0600 | [diff] [blame] | 23 | obj-y += board_f.o |
| 24 | obj-y += board_r.o |
Masahiro Yamada | 9607f7a | 2015-01-14 17:07:05 +0900 | [diff] [blame] | 25 | obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o |
| 26 | obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o |
Simon Glass | c45e359 | 2013-03-11 06:49:53 +0000 | [diff] [blame] | 27 | |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 28 | obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o |
Tom Rini | 36f067f | 2016-08-12 08:31:15 -0400 | [diff] [blame] | 29 | obj-$(CONFIG_CMD_BOOTZ) += bootm.o bootm_os.o |
| 30 | obj-$(CONFIG_CMD_BOOTI) += bootm.o bootm_os.o |
Jean-Christophe PLAGNIOL-VILLARD | aea6f85 | 2008-08-30 23:47:38 +0200 | [diff] [blame] | 31 | |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 32 | obj-$(CONFIG_CMD_BEDBUG) += bedbug.o |
Philipp Tomsich | ae7dcd8 | 2017-07-04 11:16:47 +0200 | [diff] [blame] | 33 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 34 | |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 35 | obj-$(CONFIG_MII) += miiphyutil.o |
| 36 | obj-$(CONFIG_CMD_MII) += miiphyutil.o |
| 37 | obj-$(CONFIG_PHYLIB) += miiphyutil.o |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 38 | |
Jean-Christophe PLAGNIOL-VILLARD | 178e118 | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 39 | ifdef CONFIG_CMD_USB |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 40 | obj-y += usb.o usb_hub.o |
| 41 | obj-$(CONFIG_USB_STORAGE) += usb_storage.o |
Jean-Christophe PLAGNIOL-VILLARD | 178e118 | 2008-08-29 21:53:57 +0200 | [diff] [blame] | 42 | endif |
Jean-Christophe PLAGNIOL-VILLARD | 74ba1ba | 2008-10-31 12:12:12 +0100 | [diff] [blame] | 43 | |
| 44 | # others |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 45 | obj-$(CONFIG_CONSOLE_MUX) += iomux.o |
Masahiro Yamada | 8c61eb0 | 2017-02-11 22:43:55 +0900 | [diff] [blame] | 46 | obj-$(CONFIG_MTD_NOR_FLASH) += flash.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 47 | obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o |
| 48 | obj-$(CONFIG_I2C_EDID) += edid.o |
| 49 | obj-$(CONFIG_KALLSYMS) += kallsyms.o |
| 50 | obj-y += splash.o |
Nikita Kiryanov | 7f9ceea | 2015-01-14 10:42:54 +0200 | [diff] [blame] | 51 | obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o |
Simon Glass | 68f5bf3 | 2016-01-18 19:52:16 -0700 | [diff] [blame] | 52 | ifndef CONFIG_DM_VIDEO |
Nikita Kiryanov | f6ebf6a | 2014-12-08 17:14:45 +0200 | [diff] [blame] | 53 | obj-$(CONFIG_LCD) += lcd.o lcd_console.o |
Simon Glass | 68f5bf3 | 2016-01-18 19:52:16 -0700 | [diff] [blame] | 54 | endif |
Hannes Petermaier | a3c8e86 | 2015-03-27 08:01:38 +0100 | [diff] [blame] | 55 | obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o |
Nikita Kiryanov | b071e4c | 2015-02-03 13:32:31 +0200 | [diff] [blame] | 56 | obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 57 | obj-$(CONFIG_LYNXKDI) += lynxkdi.o |
| 58 | obj-$(CONFIG_MENU) += menu.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 59 | obj-$(CONFIG_UPDATE_TFTP) += update.o |
Lukasz Majewski | e32125a | 2015-08-24 00:21:47 +0200 | [diff] [blame] | 60 | obj-$(CONFIG_DFU_TFTP) += update.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 61 | obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o |
Tom Rini | db00957 | 2017-05-08 22:14:34 -0400 | [diff] [blame] | 62 | obj-$(CONFIG_CMDLINE) += cli_readline.o cli_simple.o |
Przemyslaw Marczak | 4d56977 | 2015-04-20 20:07:43 +0200 | [diff] [blame] | 63 | |
Simon Glass | 29499a0 | 2016-01-17 20:53:51 -0700 | [diff] [blame] | 64 | endif # !CONFIG_SPL_BUILD |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 65 | |
Simon Glass | 01154cb | 2017-05-22 05:05:35 -0600 | [diff] [blame] | 66 | obj-$(CONFIG_$(SPL_)BOOTSTAGE) += bootstage.o |
| 67 | |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 68 | ifdef CONFIG_SPL_BUILD |
B, Ravi | 603a4c1 | 2016-07-28 17:39:15 +0530 | [diff] [blame] | 69 | obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu.o |
B, Ravi | 8b3c725 | 2016-07-28 17:39:14 +0530 | [diff] [blame] | 70 | obj-$(CONFIG_SPL_DFU_SUPPORT) += cli_hush.o |
Teddy Reed | 5021e3c | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 71 | obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 72 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o |
Cooper Jr., Franklin | e679240 | 2017-06-16 17:25:05 -0500 | [diff] [blame] | 73 | obj-$(CONFIG_SPL_LOAD_FIT) += common_fit.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 74 | obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o |
Philipp Tomsich | ae7dcd8 | 2017-07-04 11:16:47 +0200 | [diff] [blame] | 75 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o |
Dan Murphy | cb367e1 | 2014-01-16 11:23:30 -0600 | [diff] [blame] | 76 | ifdef CONFIG_SPL_USB_HOST_SUPPORT |
| 77 | obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o |
| 78 | obj-$(CONFIG_USB_STORAGE) += usb_storage.o |
| 79 | endif |
Ying Zhang | 602f7d3 | 2013-05-20 14:07:25 +0800 | [diff] [blame] | 80 | endif |
Ying Zhang | ded52a4 | 2013-05-20 14:07:26 +0800 | [diff] [blame] | 81 | #others |
Masahiro Yamada | 6968298 | 2014-09-18 15:43:41 +0900 | [diff] [blame] | 82 | obj-$(CONFIG_DDR_SPD) += ddr_spd.o |
| 83 | obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 84 | obj-$(CONFIG_HWCONFIG) += hwconfig.o |
| 85 | obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o |
Heiko Schocher | 62cb156 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 86 | ifdef CONFIG_SPL_BUILD |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 87 | ifdef CONFIG_TPL_BUILD |
| 88 | obj-$(CONFIG_TPL_SERIAL_SUPPORT) += console.o |
| 89 | else |
Heiko Schocher | 62cb156 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 90 | obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 91 | endif |
Heiko Schocher | 62cb156 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 92 | else |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 93 | obj-y += console.o |
Heiko Schocher | 62cb156 | 2015-06-29 09:10:46 +0200 | [diff] [blame] | 94 | endif |
Vadim Bendebury | e5d1579 | 2014-02-27 13:26:02 -0700 | [diff] [blame] | 95 | obj-$(CONFIG_CROS_EC) += cros_ec.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 96 | obj-y += dlmalloc.o |
Andy Yan | 1fa20e4d | 2017-07-24 17:43:34 +0800 | [diff] [blame] | 97 | ifdef CONFIG_SYS_MALLOC_F |
| 98 | ifneq ($(CONFIG_$(SPL_)SYS_MALLOC_F_LEN),0) |
Simon Glass | 9489046 | 2014-11-10 17:16:43 -0700 | [diff] [blame] | 99 | obj-y += malloc_simple.o |
| 100 | endif |
Andy Yan | 1fa20e4d | 2017-07-24 17:43:34 +0800 | [diff] [blame] | 101 | endif |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 102 | obj-y += image.o |
Sebastian Siewior | 686d667 | 2014-05-05 15:08:09 -0500 | [diff] [blame] | 103 | obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o |
Philipp Tomsich | ae7dcd8 | 2017-07-04 11:16:47 +0200 | [diff] [blame] | 104 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o |
| 105 | obj-$(CONFIG_$(SPL_TPL_)FIT) += image-fit.o |
Cooper Jr., Franklin | 899aad2 | 2017-06-16 17:25:06 -0500 | [diff] [blame] | 106 | obj-$(CONFIG_FIT_EMBED) += boot_fit.o common_fit.o |
Philipp Tomsich | ae7dcd8 | 2017-07-04 11:16:47 +0200 | [diff] [blame] | 107 | obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += image-sig.o |
Simon Glass | 4dc47ca | 2014-06-11 23:29:41 -0600 | [diff] [blame] | 108 | obj-$(CONFIG_IO_TRACE) += iotrace.o |
Masahiro Yamada | 55c745d | 2013-10-17 17:34:59 +0900 | [diff] [blame] | 109 | obj-y += memsize.o |
| 110 | obj-y += stdio.o |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 111 | |
Steve Rae | 792ac48 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 112 | # 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] | 113 | ifdef CONFIG_FASTBOOT_FLASH |
Maxime Ripard | 6af49bc | 2015-10-15 14:34:19 +0200 | [diff] [blame] | 114 | obj-y += image-sparse.o |
Maxime Ripard | 33602a9 | 2015-10-15 14:34:17 +0200 | [diff] [blame] | 115 | ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV |
Steve Rae | 792ac48 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 116 | obj-y += fb_mmc.o |
| 117 | endif |
Maxime Ripard | 33602a9 | 2015-10-15 14:34:17 +0200 | [diff] [blame] | 118 | ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV |
| 119 | obj-y += fb_nand.o |
| 120 | endif |
| 121 | endif |
Steve Rae | 792ac48 | 2014-08-26 11:47:27 -0700 | [diff] [blame] | 122 | |
Nikita Kiryanov | 37dda1c | 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 | d02389c | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 126 | |
| 127 | obj-y += cli.o |
Tom Rini | db00957 | 2017-05-08 22:14:34 -0400 | [diff] [blame] | 128 | obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o |
B, Ravi | 603a4c1 | 2016-07-28 17:39:15 +0530 | [diff] [blame] | 129 | obj-$(CONFIG_CMD_DFU) += dfu.o |
Alison Wang | d02389c | 2014-12-03 15:00:44 +0800 | [diff] [blame] | 130 | obj-y += command.o |
| 131 | obj-y += s_record.o |
| 132 | obj-y += xyzModem.o |