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.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-10-17 21:52:26 +00:00
|
|
|
#
|
|
|
|
|
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
|
2017-05-17 15:05:34 +00:00
|
|
|
obj-$(CONFIG_HASH) += hash.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
|
|
|
|
2014-04-11 02:01:30 +00: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 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
|
|
|
|
2016-01-18 03:53:51 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o
|
2016-08-12 12:31:15 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTZ) += bootm.o bootm_os.o
|
|
|
|
obj-$(CONFIG_CMD_BOOTI) += bootm.o bootm_os.o
|
2008-08-30 21:47:38 +00:00
|
|
|
|
2016-01-18 03:53:51 +00:00
|
|
|
obj-$(CONFIG_CMD_BEDBUG) += bedbug.o
|
2017-07-04 09:16:47 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
|
2016-01-18 03:53:51 +00:00
|
|
|
|
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
|
|
|
|
2008-08-29 19:53:57 +00:00
|
|
|
ifdef CONFIG_CMD_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
|
2015-02-03 11:32:31 +00:00
|
|
|
obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_LYNXKDI) += lynxkdi.o
|
|
|
|
obj-$(CONFIG_MENU) += menu.o
|
|
|
|
obj-$(CONFIG_UPDATE_TFTP) += update.o
|
2015-08-23 22:21:47 +00:00
|
|
|
obj-$(CONFIG_DFU_TFTP) += 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
|
2017-05-22 11:05:35 +00:00
|
|
|
|
2012-01-31 12:03:57 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2016-07-28 12:09:15 +00:00
|
|
|
obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu.o
|
2016-07-28 12:09:14 +00:00
|
|
|
obj-$(CONFIG_SPL_DFU_SUPPORT) += cli_hush.o
|
2016-06-10 02:18:44 +00:00
|
|
|
obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
|
2017-06-16 22:25:05 +00:00
|
|
|
obj-$(CONFIG_SPL_LOAD_FIT) += common_fit.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
|
2017-07-04 09:16:47 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
|
2014-01-16 17:23:30 +00:00
|
|
|
ifdef CONFIG_SPL_USB_HOST_SUPPORT
|
|
|
|
obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
|
|
|
|
obj-$(CONFIG_USB_STORAGE) += usb_storage.o
|
|
|
|
endif
|
2012-01-31 12:03:57 +00:00
|
|
|
endif
|
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
|
|
|
|
obj-$(CONFIG_TPL_SERIAL_SUPPORT) += console.o
|
|
|
|
else
|
2015-06-29 07:10:46 +00:00
|
|
|
obj-$(CONFIG_SPL_SERIAL_SUPPORT) += 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
|
2015-06-29 07:10:46 +00:00
|
|
|
endif
|
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
|
|
|
|
ifneq ($(CONFIG_$(SPL_)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
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += image.o
|
2014-05-05 20:08:09 +00:00
|
|
|
obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
|
2017-07-04 09:16:47 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)FIT) += image-fit.o
|
2017-09-15 10:57:24 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)MULTI_DTB_FIT) += boot_fit.o common_fit.o
|
2017-07-04 09:16:47 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += image-sig.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
|
|
|
|
2014-08-26 18:47:27 +00:00
|
|
|
# This option is not just y/n - it can have a numeric value
|
2015-10-15 12:34:17 +00:00
|
|
|
ifdef CONFIG_FASTBOOT_FLASH
|
2015-10-15 12:34:19 +00:00
|
|
|
obj-y += image-sparse.o
|
2015-10-15 12:34:17 +00:00
|
|
|
ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
|
2014-08-26 18:47:27 +00:00
|
|
|
obj-y += fb_mmc.o
|
|
|
|
endif
|
2015-10-15 12:34:17 +00:00
|
|
|
ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV
|
|
|
|
obj-y += fb_nand.o
|
|
|
|
endif
|
|
|
|
endif
|
2014-08-26 18:47:27 +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
|
2016-07-28 12:09:15 +00:00
|
|
|
obj-$(CONFIG_CMD_DFU) += 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
|
|
|
|
obj-y += s_record.o
|
|
|
|
obj-y += xyzModem.o
|