2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-10-17 21:52:26 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2004-2006
|
2002-10-17 21:52:26 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2008-08-29 19:53:57 +00:00
|
|
|
# core
|
2011-07-13 05:11:06 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2015-10-19 12:49:56 +00:00
|
|
|
obj-y += init/
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += main.o
|
|
|
|
obj-y += exports.o
|
2016-06-20 17:11:19 +00:00
|
|
|
obj-$(CONFIG_HUSH_PARSER) += cli_hush.o
|
2016-06-20 08:33:39 +00:00
|
|
|
obj-$(CONFIG_AUTOBOOT) += autoboot.o
|
2014-04-11 02:01:28 +00:00
|
|
|
|
2017-08-03 18:21:49 +00:00
|
|
|
# # boards
|
2016-05-15 00:49:35 +00:00
|
|
|
obj-y += board_f.o
|
|
|
|
obj-y += board_r.o
|
2015-01-14 08:07:05 +00:00
|
|
|
obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o
|
|
|
|
obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o
|
2013-03-11 06:49:53 +00:00
|
|
|
|
2021-11-15 15:32:18 +00:00
|
|
|
obj-$(CONFIG_FDT_SIMPLEFB) += fdt_simplefb.o
|
2017-07-04 09:16:47 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_MII) += miiphyutil.o
|
|
|
|
obj-$(CONFIG_CMD_MII) += miiphyutil.o
|
|
|
|
obj-$(CONFIG_PHYLIB) += miiphyutil.o
|
2016-01-18 03:53:51 +00:00
|
|
|
|
2018-11-21 07:43:55 +00:00
|
|
|
ifdef CONFIG_USB
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += usb.o usb_hub.o
|
|
|
|
obj-$(CONFIG_USB_STORAGE) += usb_storage.o
|
2008-08-29 19:53:57 +00:00
|
|
|
endif
|
2008-10-31 11:12:12 +00:00
|
|
|
|
|
|
|
# others
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CONSOLE_MUX) += iomux.o
|
2017-02-11 13:43:55 +00:00
|
|
|
obj-$(CONFIG_MTD_NOR_FLASH) += flash.o
|
2013-10-17 08:34:59 +00: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 08:42:54 +00:00
|
|
|
obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
|
2016-01-19 02:52:16 +00:00
|
|
|
ifndef CONFIG_DM_VIDEO
|
2014-12-08 15:14:45 +00:00
|
|
|
obj-$(CONFIG_LCD) += lcd.o lcd_console.o
|
2016-01-19 02:52:16 +00:00
|
|
|
endif
|
2015-03-27 07:01:38 +00:00
|
|
|
obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_MENU) += menu.o
|
2020-10-29 04:47:43 +00:00
|
|
|
obj-$(CONFIG_UPDATE_COMMON) += update.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
|
2017-05-09 02:14:34 +00:00
|
|
|
obj-$(CONFIG_CMDLINE) += cli_readline.o cli_simple.o
|
2015-04-20 18:07:43 +00:00
|
|
|
|
2016-01-18 03:53:51 +00:00
|
|
|
endif # !CONFIG_SPL_BUILD
|
2011-07-13 05:11:06 +00:00
|
|
|
|
2017-09-11 20:04:09 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)BOOTSTAGE) += bootstage.o
|
2018-11-16 01:43:50 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)BLOBLIST) += bloblist.o
|
2017-05-22 11:05:35 +00:00
|
|
|
|
2012-01-31 12:03:57 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2019-01-17 19:43:02 +00:00
|
|
|
ifdef CONFIG_SPL_DFU
|
2018-02-16 15:41:18 +00:00
|
|
|
obj-$(CONFIG_DFU_OVER_USB) += dfu.o
|
2018-02-16 15:41:17 +00:00
|
|
|
endif
|
2021-08-08 18:20:30 +00:00
|
|
|
obj-$(CONFIG_SPL_NET) += miiphyutil.o
|
2017-07-04 09:16:47 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
|
2018-12-04 10:30:57 +00:00
|
|
|
|
2021-07-11 03:14:29 +00:00
|
|
|
ifdef CONFIG_SPL_USB_HOST
|
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 10:30:57 +00:00
|
|
|
else
|
|
|
|
obj-$(CONFIG_USB_MUSB_HOST) += usb.o
|
2014-01-16 17:23:30 +00:00
|
|
|
endif
|
2018-11-06 22:21:28 +00:00
|
|
|
endif # CONFIG_SPL_BUILD
|
|
|
|
|
2013-05-20 06:07:26 +00:00
|
|
|
#others
|
2014-09-18 06:43:41 +00:00
|
|
|
obj-$(CONFIG_DDR_SPD) += ddr_spd.o
|
|
|
|
obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_HWCONFIG) += hwconfig.o
|
|
|
|
obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
|
2015-06-29 07:10:46 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2016-09-13 05:18:25 +00:00
|
|
|
ifdef CONFIG_TPL_BUILD
|
2021-08-08 18:20:12 +00:00
|
|
|
obj-$(CONFIG_TPL_SERIAL) += console.o
|
2016-09-13 05:18:25 +00:00
|
|
|
else
|
2021-08-08 18:20:12 +00:00
|
|
|
obj-$(CONFIG_SPL_SERIAL) += console.o
|
2016-09-13 05:18:25 +00:00
|
|
|
endif
|
2015-06-29 07:10:46 +00:00
|
|
|
else
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += console.o
|
2018-11-06 22:21:28 +00:00
|
|
|
endif # CONFIG_SPL_BUILD
|
|
|
|
|
2014-02-27 20:26:02 +00:00
|
|
|
obj-$(CONFIG_CROS_EC) += cros_ec.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += dlmalloc.o
|
2017-07-24 09:43:34 +00:00
|
|
|
ifdef CONFIG_SYS_MALLOC_F
|
2018-11-06 22:21:28 +00:00
|
|
|
ifneq ($(CONFIG_$(SPL_TPL_)SYS_MALLOC_F_LEN),0)
|
2014-11-11 00:16:43 +00:00
|
|
|
obj-y += malloc_simple.o
|
|
|
|
endif
|
2017-07-24 09:43:34 +00:00
|
|
|
endif
|
2018-11-06 22:21:28 +00:00
|
|
|
|
2021-09-03 00:54:19 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)HASH) += hash.o
|
2014-06-12 05:29:41 +00:00
|
|
|
obj-$(CONFIG_IO_TRACE) += iotrace.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += memsize.o
|
|
|
|
obj-y += stdio.o
|
2002-10-17 21:52:26 +00:00
|
|
|
|
2016-04-16 14:55:03 +00: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 07:00:44 +00:00
|
|
|
|
|
|
|
obj-y += cli.o
|
2017-05-09 02:14:34 +00:00
|
|
|
obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
|
2019-04-10 12:09:27 +00:00
|
|
|
obj-$(CONFIG_STM32MP1_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
|
2018-02-16 15:41:18 +00: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 07:00:44 +00:00
|
|
|
obj-y += command.o
|
2018-11-16 01:43:49 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)LOG) += log.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)LOG_CONSOLE) += log_console.o
|
2020-02-26 20:48:16 +00: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 07:00:44 +00:00
|
|
|
obj-y += s_record.o
|
2018-02-13 08:07:55 +00:00
|
|
|
obj-$(CONFIG_CMD_LOADB) += xyzModem.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += xyzModem.o
|
2018-06-03 18:56:38 +00:00
|
|
|
|
2018-07-17 11:33:25 +00:00
|
|
|
obj-$(CONFIG_AVB_VERIFY) += avb_verify.o
|
2021-04-11 09:21:58 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)STACKPROTECTOR) += stackprot.o
|
2021-02-14 15:27:23 +00:00
|
|
|
obj-$(CONFIG_SCP03) += scp03.o
|
2021-03-19 07:21:40 +00:00
|
|
|
|
|
|
|
obj-$(CONFIG_QFW) += qfw.o
|