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
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += main.o
|
|
|
|
obj-y += exports.o
|
|
|
|
obj-y += hash.o
|
2014-04-11 02:01:26 +00:00
|
|
|
ifdef CONFIG_SYS_HUSH_PARSER
|
|
|
|
obj-y += cli_hush.o
|
|
|
|
endif
|
|
|
|
|
2014-04-11 02:01:28 +00:00
|
|
|
# This option is not just y/n - it can have a numeric value
|
|
|
|
ifdef CONFIG_BOOTDELAY
|
|
|
|
obj-y += autoboot.o
|
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
|
2013-03-11 06:49:53 +00:00
|
|
|
# boards
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_SYS_GENERIC_BOARD) += board_f.o
|
|
|
|
obj-$(CONFIG_SYS_GENERIC_BOARD) += 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
|
|
|
|
2008-10-31 11:12:12 +00:00
|
|
|
# core command
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += cmd_boot.o
|
2014-06-12 13:24:46 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTM) += cmd_bootm.o bootm.o bootm_os.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += cmd_help.o
|
|
|
|
obj-y += cmd_version.o
|
2008-08-30 21:47:38 +00:00
|
|
|
|
2008-08-29 19:53:57 +00:00
|
|
|
# environment
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += env_attr.o
|
|
|
|
obj-y += env_callback.o
|
|
|
|
obj-y += env_flags.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
|
|
|
|
extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o
|
|
|
|
extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o
|
|
|
|
obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
|
2008-08-29 19:53:57 +00:00
|
|
|
|
|
|
|
# command
|
2014-03-05 18:58:39 +00:00
|
|
|
obj-$(CONFIG_CMD_AES) += cmd_aes.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
|
|
|
|
obj-$(CONFIG_SOURCE) += cmd_source.o
|
|
|
|
obj-$(CONFIG_CMD_SOURCE) += cmd_source.o
|
|
|
|
obj-$(CONFIG_CMD_BDI) += cmd_bdinfo.o
|
|
|
|
obj-$(CONFIG_CMD_BEDBUG) += bedbug.o cmd_bedbug.o
|
|
|
|
obj-$(CONFIG_CMD_BMP) += cmd_bmp.o
|
|
|
|
obj-$(CONFIG_CMD_BOOTMENU) += cmd_bootmenu.o
|
|
|
|
obj-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
|
|
|
|
obj-$(CONFIG_CMD_BOOTSTAGE) += cmd_bootstage.o
|
|
|
|
obj-$(CONFIG_CMD_CACHE) += cmd_cache.o
|
|
|
|
obj-$(CONFIG_CMD_CBFS) += cmd_cbfs.o
|
2013-11-21 21:39:02 +00:00
|
|
|
obj-$(CONFIG_CMD_CLK) += cmd_clk.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_CONSOLE) += cmd_console.o
|
|
|
|
obj-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o
|
|
|
|
obj-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o
|
|
|
|
obj-$(CONFIG_CMD_DATE) += cmd_date.o
|
2014-02-26 22:59:23 +00:00
|
|
|
obj-$(CONFIG_CMD_DEMO) += cmd_demo.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_SOUND) += cmd_sound.o
|
2007-09-24 15:05:31 +00:00
|
|
|
ifdef CONFIG_4xx
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o
|
2007-09-24 15:05:31 +00:00
|
|
|
endif
|
|
|
|
ifdef CONFIG_POST
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_DIAG) += cmd_diag.o
|
2007-09-24 15:05:31 +00:00
|
|
|
endif
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_DISPLAY) += cmd_display.o
|
|
|
|
obj-$(CONFIG_CMD_DTT) += cmd_dtt.o
|
|
|
|
obj-$(CONFIG_CMD_ECHO) += cmd_echo.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_EEPROM) += cmd_eeprom.o
|
|
|
|
obj-$(CONFIG_CMD_EEPROM) += cmd_eeprom.o
|
|
|
|
obj-$(CONFIG_CMD_ELF) += cmd_elf.o
|
|
|
|
obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_exit.o
|
|
|
|
obj-$(CONFIG_CMD_EXT4) += cmd_ext4.o
|
|
|
|
obj-$(CONFIG_CMD_EXT2) += cmd_ext2.o
|
|
|
|
obj-$(CONFIG_CMD_FAT) += cmd_fat.o
|
2014-02-21 13:42:02 +00:00
|
|
|
obj-$(CONFIG_CMD_FDC) += cmd_fdc.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
|
|
|
|
obj-$(CONFIG_CMD_FITUPD) += cmd_fitupd.o
|
|
|
|
obj-$(CONFIG_CMD_FLASH) += cmd_flash.o
|
2007-09-24 15:05:31 +00:00
|
|
|
ifdef CONFIG_FPGA
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_FPGA) += cmd_fpga.o
|
2007-09-24 15:05:31 +00:00
|
|
|
endif
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_FPGAD) += cmd_fpgad.o
|
|
|
|
obj-$(CONFIG_CMD_FS_GENERIC) += cmd_fs.o
|
|
|
|
obj-$(CONFIG_CMD_FUSE) += cmd_fuse.o
|
|
|
|
obj-$(CONFIG_CMD_GETTIME) += cmd_gettime.o
|
|
|
|
obj-$(CONFIG_CMD_GPIO) += cmd_gpio.o
|
|
|
|
obj-$(CONFIG_CMD_I2C) += cmd_i2c.o
|
2014-06-12 05:29:41 +00:00
|
|
|
obj-$(CONFIG_CMD_IOTRACE) += cmd_iotrace.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_HASH) += cmd_hash.o
|
|
|
|
obj-$(CONFIG_CMD_IDE) += cmd_ide.o
|
|
|
|
obj-$(CONFIG_CMD_IMMAP) += cmd_immap.o
|
|
|
|
obj-$(CONFIG_CMD_INI) += cmd_ini.o
|
|
|
|
obj-$(CONFIG_CMD_IRQ) += cmd_irq.o
|
|
|
|
obj-$(CONFIG_CMD_ITEST) += cmd_itest.o
|
|
|
|
obj-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o
|
|
|
|
obj-$(CONFIG_CMD_CRAMFS) += cmd_cramfs.o
|
|
|
|
obj-$(CONFIG_CMD_LDRINFO) += cmd_ldrinfo.o
|
|
|
|
obj-$(CONFIG_CMD_LED) += cmd_led.o
|
|
|
|
obj-$(CONFIG_CMD_LICENSE) += cmd_license.o
|
|
|
|
obj-y += cmd_load.o
|
|
|
|
obj-$(CONFIG_LOGBUFFER) += cmd_log.o
|
|
|
|
obj-$(CONFIG_ID_EEPROM) += cmd_mac.o
|
|
|
|
obj-$(CONFIG_CMD_MD5SUM) += cmd_md5sum.o
|
|
|
|
obj-$(CONFIG_CMD_MEMORY) += cmd_mem.o
|
|
|
|
obj-$(CONFIG_CMD_IO) += cmd_io.o
|
|
|
|
obj-$(CONFIG_CMD_MFSL) += cmd_mfsl.o
|
|
|
|
obj-$(CONFIG_MII) += miiphyutil.o
|
|
|
|
obj-$(CONFIG_CMD_MII) += miiphyutil.o
|
|
|
|
obj-$(CONFIG_PHYLIB) += miiphyutil.o
|
|
|
|
obj-$(CONFIG_CMD_MII) += cmd_mii.o
|
2011-03-21 23:03:22 +00:00
|
|
|
ifdef CONFIG_PHYLIB
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_MII) += cmd_mdio.o
|
2011-03-21 23:03:22 +00:00
|
|
|
endif
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_MISC) += cmd_misc.o
|
|
|
|
obj-$(CONFIG_CMD_MMC) += cmd_mmc.o
|
|
|
|
obj-$(CONFIG_CMD_MMC_SPI) += cmd_mmc_spi.o
|
|
|
|
obj-$(CONFIG_MP) += cmd_mp.o
|
|
|
|
obj-$(CONFIG_CMD_MTDPARTS) += cmd_mtdparts.o
|
|
|
|
obj-$(CONFIG_CMD_NAND) += cmd_nand.o
|
|
|
|
obj-$(CONFIG_CMD_NET) += cmd_net.o
|
|
|
|
obj-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
|
|
|
|
obj-$(CONFIG_CMD_OTP) += cmd_otp.o
|
|
|
|
obj-$(CONFIG_CMD_PART) += cmd_part.o
|
2007-09-24 15:05:31 +00:00
|
|
|
ifdef CONFIG_PCI
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_PCI) += cmd_pci.o
|
2007-09-24 15:05:31 +00:00
|
|
|
endif
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += cmd_pcmcia.o
|
|
|
|
obj-$(CONFIG_CMD_PORTIO) += cmd_portio.o
|
|
|
|
obj-$(CONFIG_CMD_PXE) += cmd_pxe.o
|
|
|
|
obj-$(CONFIG_CMD_READ) += cmd_read.o
|
|
|
|
obj-$(CONFIG_CMD_REGINFO) += cmd_reginfo.o
|
|
|
|
obj-$(CONFIG_CMD_REISER) += cmd_reiser.o
|
|
|
|
obj-$(CONFIG_SANDBOX) += cmd_sandbox.o
|
|
|
|
obj-$(CONFIG_CMD_SATA) += cmd_sata.o
|
|
|
|
obj-$(CONFIG_CMD_SF) += cmd_sf.o
|
|
|
|
obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
|
|
|
|
obj-$(CONFIG_CMD_SHA1SUM) += cmd_sha1sum.o
|
|
|
|
obj-$(CONFIG_CMD_SETEXPR) += cmd_setexpr.o
|
|
|
|
obj-$(CONFIG_CMD_SOFTSWITCH) += cmd_softswitch.o
|
|
|
|
obj-$(CONFIG_CMD_SPI) += cmd_spi.o
|
|
|
|
obj-$(CONFIG_CMD_SPIBOOTLDR) += cmd_spibootldr.o
|
|
|
|
obj-$(CONFIG_CMD_STRINGS) += cmd_strings.o
|
|
|
|
obj-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o
|
|
|
|
obj-$(CONFIG_CMD_TIME) += cmd_time.o
|
|
|
|
obj-$(CONFIG_CMD_TRACE) += cmd_trace.o
|
|
|
|
obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_test.o
|
|
|
|
obj-$(CONFIG_CMD_TPM) += cmd_tpm.o
|
|
|
|
obj-$(CONFIG_CMD_TSI148) += cmd_tsi148.o
|
|
|
|
obj-$(CONFIG_CMD_UBI) += cmd_ubi.o
|
|
|
|
obj-$(CONFIG_CMD_UBIFS) += cmd_ubifs.o
|
|
|
|
obj-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o
|
|
|
|
obj-$(CONFIG_CMD_UNZIP) += cmd_unzip.o
|
2014-02-16 05:19:57 +00:00
|
|
|
ifdef CONFIG_LZMA
|
|
|
|
obj-$(CONFIG_CMD_LZMADEC) += cmd_lzmadec.o
|
|
|
|
endif
|
2008-08-29 19:53:57 +00:00
|
|
|
ifdef CONFIG_CMD_USB
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += cmd_usb.o
|
|
|
|
obj-y += usb.o usb_hub.o
|
|
|
|
obj-$(CONFIG_USB_STORAGE) += usb_storage.o
|
2008-08-29 19:53:57 +00:00
|
|
|
endif
|
2014-05-05 20:08:10 +00:00
|
|
|
obj-$(CONFIG_CMD_FASTBOOT) += cmd_fastboot.o
|
2014-11-12 13:35:04 +00:00
|
|
|
obj-$(CONFIG_CMD_FS_UUID) += cmd_fs_uuid.o
|
2014-05-05 20:08:10 +00:00
|
|
|
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_CMD_USB_MASS_STORAGE) += cmd_usb_mass_storage.o
|
|
|
|
obj-$(CONFIG_CMD_THOR_DOWNLOAD) += cmd_thordown.o
|
|
|
|
obj-$(CONFIG_CMD_XIMG) += cmd_ximg.o
|
|
|
|
obj-$(CONFIG_YAFFS2) += cmd_yaffs2.o
|
|
|
|
obj-$(CONFIG_CMD_SPL) += cmd_spl.o
|
|
|
|
obj-$(CONFIG_CMD_ZIP) += cmd_zip.o
|
|
|
|
obj-$(CONFIG_CMD_ZFS) += cmd_zfs.o
|
2008-10-31 11:12:12 +00:00
|
|
|
|
|
|
|
# others
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_BOOTSTAGE) += bootstage.o
|
|
|
|
obj-$(CONFIG_CONSOLE_MUX) += iomux.o
|
|
|
|
obj-y += flash.o
|
|
|
|
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
|
2014-12-08 15:14:45 +00:00
|
|
|
obj-$(CONFIG_LCD) += lcd.o lcd_console.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_MODEM_SUPPORT) += modem.o
|
|
|
|
obj-$(CONFIG_UPDATE_TFTP) += update.o
|
|
|
|
obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
|
|
|
|
obj-$(CONFIG_CMD_DFU) += cmd_dfu.o
|
|
|
|
obj-$(CONFIG_CMD_GPT) += cmd_gpt.o
|
2011-07-13 05:11:06 +00:00
|
|
|
endif
|
|
|
|
|
2012-01-31 12:03:57 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
|
|
|
|
obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
|
|
|
|
obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.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
|
2014-02-03 12:59:01 +00:00
|
|
|
ifdef CONFIG_SPL_SATA_SUPPORT
|
|
|
|
obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
|
|
|
|
endif
|
2014-07-18 15:51:34 +00:00
|
|
|
# environment
|
|
|
|
ifdef CONFIG_SPL_ENV_SUPPORT
|
|
|
|
obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o
|
|
|
|
obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o
|
|
|
|
obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
|
2014-09-23 15:44:17 +00:00
|
|
|
obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
|
2013-05-20 06:07:25 +00:00
|
|
|
endif
|
2012-01-31 12:03:57 +00:00
|
|
|
endif
|
2013-05-20 06:07:25 +00:00
|
|
|
# core command
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += cmd_nvedit.o
|
2013-05-20 06:07:25 +00:00
|
|
|
#environment
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-y += env_common.o
|
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
|
|
|
|
obj-y += console.o
|
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
|
2014-11-11 00:16:43 +00:00
|
|
|
ifdef CONFIG_SYS_MALLOC_F_LEN
|
|
|
|
obj-y += malloc_simple.o
|
|
|
|
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
|
2013-10-17 08:34:59 +00:00
|
|
|
obj-$(CONFIG_OF_LIBFDT) += image-fdt.o
|
|
|
|
obj-$(CONFIG_FIT) += image-fit.o
|
|
|
|
obj-$(CONFIG_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
|
|
|
|
ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
|
2014-08-26 18:47:30 +00:00
|
|
|
obj-y += aboot.o
|
2014-08-26 18:47:27 +00:00
|
|
|
obj-y += fb_mmc.o
|
|
|
|
endif
|
|
|
|
|
2014-10-07 10:16:20 +00:00
|
|
|
obj-$(CONFIG_CMD_BLOB) += cmd_blob.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
|
|
|
# We always have this since drivers/ddr/fs/interactive.c needs it
|
|
|
|
obj-y += cli_simple.o
|
|
|
|
|
|
|
|
obj-y += cli.o
|
|
|
|
obj-y += cli_readline.o
|
|
|
|
obj-y += command.o
|
|
|
|
obj-y += s_record.o
|
|
|
|
obj-y += xyzModem.o
|
|
|
|
obj-y += cmd_disk.o
|
|
|
|
|
kbuild: use Linux Kernel build scripts
Now we are ready to switch over to real Kbuild.
This commit disables temporary scripts:
scripts/{Makefile.build.tmp, Makefile.host.tmp}
and enables real Kbuild scripts:
scripts/{Makefile.build,Makefile.host,Makefile.lib}.
This switch is triggered by the line in scripts/Kbuild.include
-build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
+build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
We need to adjust some build scripts for U-Boot.
But smaller amount of modification is preferable.
Additionally, we need to fix compiler flags which are
locally added or removed.
In Kbuild, it is not allowed to change CFLAGS locally.
Instead, ccflags-y, asflags-y, cppflags-y,
CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
are prepared for that purpose.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Tested-by: Gerhard Sittig <gsi@denx.de>
2014-02-04 08:24:28 +00:00
|
|
|
CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)
|