2018-05-06 17:58:06 -04:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-10-17 21:52:26 +00:00
|
|
|
#
|
2006-09-01 19:49:50 +02:00
|
|
|
# (C) Copyright 2004-2006
|
2002-10-17 21:52:26 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2008-08-29 21:53:57 +02:00
|
|
|
# core
|
2011-07-13 05:11:06 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2015-10-19 06:49:56 -06:00
|
|
|
obj-y += init/
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-y += main.o
|
|
|
|
obj-y += exports.o
|
2017-05-17 09:05:34 -06:00
|
|
|
obj-$(CONFIG_HASH) += hash.o
|
2016-06-21 02:11:19 +09:00
|
|
|
obj-$(CONFIG_HUSH_PARSER) += cli_hush.o
|
2016-06-20 17:33:39 +09:00
|
|
|
obj-$(CONFIG_AUTOBOOT) += autoboot.o
|
2014-04-10 20:01:28 -06:00
|
|
|
|
2014-04-10 20:01:30 -06:00
|
|
|
# This option is not just y/n - it can have a numeric value
|
|
|
|
ifdef CONFIG_BOOT_RETRY_TIME
|
|
|
|
obj-y += bootretry.o
|
|
|
|
endif
|
|
|
|
|
2017-08-03 12:21:49 -06:00
|
|
|
# # boards
|
2016-05-14 18:49:35 -06:00
|
|
|
obj-y += board_f.o
|
|
|
|
obj-y += board_r.o
|
2015-01-14 17:07:05 +09:00
|
|
|
obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o
|
|
|
|
obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o
|
2013-03-11 06:49:53 +00:00
|
|
|
|
2016-01-17 20:53:51 -07:00
|
|
|
obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o
|
2016-08-12 08:31:15 -04:00
|
|
|
obj-$(CONFIG_CMD_BOOTZ) += bootm.o bootm_os.o
|
|
|
|
obj-$(CONFIG_CMD_BOOTI) += bootm.o bootm_os.o
|
2008-08-30 23:47:38 +02:00
|
|
|
|
2016-01-17 20:53:51 -07:00
|
|
|
obj-$(CONFIG_CMD_BEDBUG) += bedbug.o
|
2017-07-04 11:16:47 +02:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-$(CONFIG_MII) += miiphyutil.o
|
|
|
|
obj-$(CONFIG_CMD_MII) += miiphyutil.o
|
|
|
|
obj-$(CONFIG_PHYLIB) += miiphyutil.o
|
2016-01-17 20:53:51 -07:00
|
|
|
|
2018-11-21 08:43:55 +01:00
|
|
|
ifdef CONFIG_USB
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-y += usb.o usb_hub.o
|
|
|
|
obj-$(CONFIG_USB_STORAGE) += usb_storage.o
|
2008-08-29 21:53:57 +02:00
|
|
|
endif
|
2008-10-31 12:12:12 +01:00
|
|
|
|
|
|
|
# others
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-$(CONFIG_CONSOLE_MUX) += iomux.o
|
2017-02-11 22:43:55 +09:00
|
|
|
obj-$(CONFIG_MTD_NOR_FLASH) += flash.o
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
|
|
|
|
obj-$(CONFIG_I2C_EDID) += edid.o
|
|
|
|
obj-$(CONFIG_KALLSYMS) += kallsyms.o
|
|
|
|
obj-y += splash.o
|
2015-01-14 10:42:54 +02:00
|
|
|
obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
|
2016-01-18 19:52:16 -07:00
|
|
|
ifndef CONFIG_DM_VIDEO
|
2014-12-08 17:14:45 +02:00
|
|
|
obj-$(CONFIG_LCD) += lcd.o lcd_console.o
|
2016-01-18 19:52:16 -07:00
|
|
|
endif
|
2015-03-27 08:01:38 +01:00
|
|
|
obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
|
2015-02-03 13:32:31 +02:00
|
|
|
obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-$(CONFIG_LYNXKDI) += lynxkdi.o
|
|
|
|
obj-$(CONFIG_MENU) += menu.o
|
|
|
|
obj-$(CONFIG_UPDATE_TFTP) += update.o
|
2015-08-24 00:21:47 +02:00
|
|
|
obj-$(CONFIG_DFU_TFTP) += update.o
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
|
2017-05-08 22:14:34 -04:00
|
|
|
obj-$(CONFIG_CMDLINE) += cli_readline.o cli_simple.o
|
2015-04-20 20:07:43 +02:00
|
|
|
|
2016-01-17 20:53:51 -07:00
|
|
|
endif # !CONFIG_SPL_BUILD
|
2011-07-13 05:11:06 +00:00
|
|
|
|
2017-09-11 22:04:09 +02:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)BOOTSTAGE) += bootstage.o
|
2018-11-15 18:43:50 -07:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)BLOBLIST) += bloblist.o
|
2017-05-22 05:05:35 -06:00
|
|
|
|
2012-01-31 12:03:57 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2019-01-17 13:43:02 -06:00
|
|
|
ifdef CONFIG_SPL_DFU
|
2018-02-16 16:41:18 +01:00
|
|
|
obj-$(CONFIG_DFU_OVER_USB) += dfu.o
|
2018-02-16 16:41:17 +01:00
|
|
|
endif
|
2016-06-09 19:18:44 -07:00
|
|
|
obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o
|
2018-11-06 15:21:28 -07:00
|
|
|
obj-$(CONFIG_TPL_HASH_SUPPORT) += hash.o
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
|
2017-06-16 17:25:05 -05:00
|
|
|
obj-$(CONFIG_SPL_LOAD_FIT) += common_fit.o
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
|
2017-07-04 11:16:47 +02:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
|
2018-12-04 11:30:57 +01:00
|
|
|
|
2014-01-16 11:23:30 -06:00
|
|
|
ifdef CONFIG_SPL_USB_HOST_SUPPORT
|
2019-02-01 16:40:07 +00:00
|
|
|
obj-y += usb.o
|
|
|
|
obj-y += usb_hub.o
|
|
|
|
obj-$(CONFIG_SPL_USB_STORAGE) += usb_storage.o
|
2018-12-04 11:30:57 +01:00
|
|
|
else
|
|
|
|
obj-$(CONFIG_USB_MUSB_HOST) += usb.o
|
2014-01-16 11:23:30 -06:00
|
|
|
endif
|
2018-11-06 15:21:28 -07:00
|
|
|
endif # CONFIG_SPL_BUILD
|
|
|
|
|
2013-05-20 14:07:26 +08:00
|
|
|
#others
|
2014-09-18 15:43:41 +09:00
|
|
|
obj-$(CONFIG_DDR_SPD) += ddr_spd.o
|
|
|
|
obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-$(CONFIG_HWCONFIG) += hwconfig.o
|
|
|
|
obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
|
2015-06-29 09:10:46 +02:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2016-09-12 23:18:25 -06:00
|
|
|
ifdef CONFIG_TPL_BUILD
|
|
|
|
obj-$(CONFIG_TPL_SERIAL_SUPPORT) += console.o
|
|
|
|
else
|
2015-06-29 09:10:46 +02:00
|
|
|
obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o
|
2016-09-12 23:18:25 -06:00
|
|
|
endif
|
2015-06-29 09:10:46 +02:00
|
|
|
else
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-y += console.o
|
2018-11-06 15:21:28 -07:00
|
|
|
endif # CONFIG_SPL_BUILD
|
|
|
|
|
2014-02-27 13:26:02 -07:00
|
|
|
obj-$(CONFIG_CROS_EC) += cros_ec.o
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-y += dlmalloc.o
|
2017-07-24 17:43:34 +08:00
|
|
|
ifdef CONFIG_SYS_MALLOC_F
|
2018-11-06 15:21:28 -07:00
|
|
|
ifneq ($(CONFIG_$(SPL_TPL_)SYS_MALLOC_F_LEN),0)
|
2014-11-10 17:16:43 -07:00
|
|
|
obj-y += malloc_simple.o
|
|
|
|
endif
|
2017-07-24 17:43:34 +08:00
|
|
|
endif
|
2018-11-06 15:21:28 -07:00
|
|
|
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-y += image.o
|
2019-07-05 15:37:32 +03:00
|
|
|
obj-$(CONFIG_ANDROID_AB) += android_ab.o
|
2020-01-24 17:53:40 +02:00
|
|
|
obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o image-android-dt.o
|
2017-07-04 11:16:47 +02:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)FIT) += image-fit.o
|
2017-09-15 12:57:24 +02:00
|
|
|
obj-$(CONFIG_$(SPL_)MULTI_DTB_FIT) += boot_fit.o common_fit.o
|
2020-02-21 15:12:55 +09:00
|
|
|
obj-$(CONFIG_IMAGE_SIGN_INFO) += image-sig.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += image-fit-sig.o
|
2019-12-18 18:25:41 +01:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)FIT_CIPHER) += image-cipher.o
|
2014-06-11 23:29:41 -06:00
|
|
|
obj-$(CONFIG_IO_TRACE) += iotrace.o
|
2013-10-17 17:34:59 +09:00
|
|
|
obj-y += memsize.o
|
|
|
|
obj-y += stdio.o
|
2002-10-17 21:52:26 +00:00
|
|
|
|
2019-12-24 17:51:06 +01:00
|
|
|
obj-$(CONFIG_CMD_ADTIMG) += image-android-dt.o
|
2018-08-16 23:34:13 +03:00
|
|
|
|
2016-04-16 17:55:03 +03:00
|
|
|
ifdef CONFIG_CMD_EEPROM_LAYOUT
|
|
|
|
obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o
|
|
|
|
endif
|
common: spl: Add interactive DDR debugger support for SPL image
To support interactive DDR debugger, cli_simple.o, cli.o, cli_readline.o,
command.o, s_record.o, xyzModem.o and cmd_disk.o are all needed for
drivers/ddr/fsl/interactive.c.
In current common/Makefile, the above .o files are only produced when
CONFIG_SPL_BUILD is disabled.
For LS102xA, interactive DDR debugger is needed in SD/NAND boot too, and
I enabled CONFIG_FSL_DDR_INTERACTIVE. But according to the current
common/Makfile, all the above .o files are not produced in SPL part
because CONFIG_SPL_BUILD is enabled in SPL part, the following error
will be shown,
drivers/ddr/fsl/built-in.o: In function `fsl_ddr_interactive':
/home/wangh/layerscape/u-boot/drivers/ddr/fsl/interactive.c:1871:
undefined reference to `cli_readline_into_buffer'
/home/wangh/layerscape/u-boot/drivers/ddr/fsl/interactive.c:1873:
undefined reference to `cli_simple_parse_line'
make[1]: *** [spl/u-boot-spl] Error 1
make: *** [spl/u-boot-spl] Error 2
So this patch fixed this issue and the above .o files will be produced
no matter CONFIG_SPL_BUILD is enabled or disabled.
Signed-off-by: Alison Wang <alison.wang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
2014-12-03 15:00:44 +08:00
|
|
|
|
|
|
|
obj-y += cli.o
|
2017-05-08 22:14:34 -04:00
|
|
|
obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
|
2019-04-10 14:09:27 +02:00
|
|
|
obj-$(CONFIG_STM32MP1_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
|
2018-02-16 16:41:18 +01:00
|
|
|
obj-$(CONFIG_DFU_OVER_USB) += dfu.o
|
common: spl: Add interactive DDR debugger support for SPL image
To support interactive DDR debugger, cli_simple.o, cli.o, cli_readline.o,
command.o, s_record.o, xyzModem.o and cmd_disk.o are all needed for
drivers/ddr/fsl/interactive.c.
In current common/Makefile, the above .o files are only produced when
CONFIG_SPL_BUILD is disabled.
For LS102xA, interactive DDR debugger is needed in SD/NAND boot too, and
I enabled CONFIG_FSL_DDR_INTERACTIVE. But according to the current
common/Makfile, all the above .o files are not produced in SPL part
because CONFIG_SPL_BUILD is enabled in SPL part, the following error
will be shown,
drivers/ddr/fsl/built-in.o: In function `fsl_ddr_interactive':
/home/wangh/layerscape/u-boot/drivers/ddr/fsl/interactive.c:1871:
undefined reference to `cli_readline_into_buffer'
/home/wangh/layerscape/u-boot/drivers/ddr/fsl/interactive.c:1873:
undefined reference to `cli_simple_parse_line'
make[1]: *** [spl/u-boot-spl] Error 1
make: *** [spl/u-boot-spl] Error 2
So this patch fixed this issue and the above .o files will be produced
no matter CONFIG_SPL_BUILD is enabled or disabled.
Signed-off-by: Alison Wang <alison.wang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
2014-12-03 15:00:44 +08:00
|
|
|
obj-y += command.o
|
2018-11-15 18:43:49 -07:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)LOG) += log.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)LOG_CONSOLE) += log_console.o
|
2020-02-26 21:48:16 +01:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)LOG_SYSLOG) += log_syslog.o
|
common: spl: Add interactive DDR debugger support for SPL image
To support interactive DDR debugger, cli_simple.o, cli.o, cli_readline.o,
command.o, s_record.o, xyzModem.o and cmd_disk.o are all needed for
drivers/ddr/fsl/interactive.c.
In current common/Makefile, the above .o files are only produced when
CONFIG_SPL_BUILD is disabled.
For LS102xA, interactive DDR debugger is needed in SD/NAND boot too, and
I enabled CONFIG_FSL_DDR_INTERACTIVE. But according to the current
common/Makfile, all the above .o files are not produced in SPL part
because CONFIG_SPL_BUILD is enabled in SPL part, the following error
will be shown,
drivers/ddr/fsl/built-in.o: In function `fsl_ddr_interactive':
/home/wangh/layerscape/u-boot/drivers/ddr/fsl/interactive.c:1871:
undefined reference to `cli_readline_into_buffer'
/home/wangh/layerscape/u-boot/drivers/ddr/fsl/interactive.c:1873:
undefined reference to `cli_simple_parse_line'
make[1]: *** [spl/u-boot-spl] Error 1
make: *** [spl/u-boot-spl] Error 2
So this patch fixed this issue and the above .o files will be produced
no matter CONFIG_SPL_BUILD is enabled or disabled.
Signed-off-by: Alison Wang <alison.wang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
2014-12-03 15:00:44 +08:00
|
|
|
obj-y += s_record.o
|
2018-02-13 16:07:55 +08:00
|
|
|
obj-$(CONFIG_CMD_LOADB) += xyzModem.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += xyzModem.o
|
2018-06-03 21:56:38 +03:00
|
|
|
|
2018-07-17 14:33:25 +03:00
|
|
|
obj-$(CONFIG_AVB_VERIFY) += avb_verify.o
|