Home | History | Annotate | Download | only in common
      1 # SPDX-License-Identifier: GPL-2.0+
      2 #
      3 # (C) Copyright 2004-2006
      4 # Wolfgang Denk, DENX Software Engineering, wd (at] denx.de.
      5 
      6 # core
      7 ifndef CONFIG_SPL_BUILD
      8 obj-y += init/
      9 obj-y += main.o
     10 obj-y += exports.o
     11 obj-$(CONFIG_HASH) += hash.o
     12 obj-$(CONFIG_HUSH_PARSER) += cli_hush.o
     13 obj-$(CONFIG_AUTOBOOT) += autoboot.o
     14 
     15 # This option is not just y/n - it can have a numeric value
     16 ifdef CONFIG_BOOT_RETRY_TIME
     17 obj-y += bootretry.o
     18 endif
     19 
     20 # # boards
     21 obj-y += board_f.o
     22 obj-y += board_r.o
     23 obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o
     24 obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o
     25 
     26 obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o
     27 obj-$(CONFIG_CMD_BOOTZ) += bootm.o bootm_os.o
     28 obj-$(CONFIG_CMD_BOOTI) += bootm.o bootm_os.o
     29 
     30 obj-$(CONFIG_CMD_BEDBUG) += bedbug.o
     31 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
     32 obj-$(CONFIG_MII) += miiphyutil.o
     33 obj-$(CONFIG_CMD_MII) += miiphyutil.o
     34 obj-$(CONFIG_PHYLIB) += miiphyutil.o
     35 
     36 ifdef CONFIG_CMD_USB
     37 obj-y += usb.o usb_hub.o
     38 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
     39 endif
     40 
     41 # others
     42 obj-$(CONFIG_CONSOLE_MUX) += iomux.o
     43 obj-$(CONFIG_MTD_NOR_FLASH) += flash.o
     44 obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
     45 obj-$(CONFIG_I2C_EDID) += edid.o
     46 obj-$(CONFIG_KALLSYMS) += kallsyms.o
     47 obj-y += splash.o
     48 obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
     49 ifndef CONFIG_DM_VIDEO
     50 obj-$(CONFIG_LCD) += lcd.o lcd_console.o
     51 endif
     52 obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
     53 obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o
     54 obj-$(CONFIG_LYNXKDI) += lynxkdi.o
     55 obj-$(CONFIG_MENU) += menu.o
     56 obj-$(CONFIG_UPDATE_TFTP) += update.o
     57 obj-$(CONFIG_DFU_TFTP) += update.o
     58 obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
     59 obj-$(CONFIG_CMDLINE) += cli_readline.o cli_simple.o
     60 
     61 endif # !CONFIG_SPL_BUILD
     62 
     63 obj-$(CONFIG_$(SPL_TPL_)BOOTSTAGE) += bootstage.o
     64 
     65 ifdef CONFIG_SPL_BUILD
     66 ifdef CONFIG_SPL_DFU_SUPPORT
     67 obj-$(CONFIG_DFU_OVER_USB) += dfu.o
     68 endif
     69 obj-$(CONFIG_SPL_DFU_SUPPORT) += cli_hush.o
     70 obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o
     71 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
     72 obj-$(CONFIG_SPL_LOAD_FIT) += common_fit.o
     73 obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
     74 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
     75 ifdef CONFIG_SPL_USB_HOST_SUPPORT
     76 obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
     77 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
     78 endif
     79 endif
     80 #others
     81 obj-$(CONFIG_DDR_SPD) += ddr_spd.o
     82 obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
     83 obj-$(CONFIG_HWCONFIG) += hwconfig.o
     84 obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
     85 ifdef CONFIG_SPL_BUILD
     86 ifdef CONFIG_TPL_BUILD
     87 obj-$(CONFIG_TPL_SERIAL_SUPPORT) += console.o
     88 else
     89 obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o
     90 endif
     91 else
     92 obj-y += console.o
     93 endif
     94 obj-$(CONFIG_CROS_EC) += cros_ec.o
     95 obj-y += dlmalloc.o
     96 ifdef CONFIG_SYS_MALLOC_F
     97 ifneq ($(CONFIG_$(SPL_)SYS_MALLOC_F_LEN),0)
     98 obj-y += malloc_simple.o
     99 endif
    100 endif
    101 obj-y += image.o
    102 obj-$(CONFIG_ANDROID_AB) += android_ab.o
    103 obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
    104 obj-$(CONFIG_ANDROID_BOOTLOADER) += android_bootloader.o
    105 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o
    106 obj-$(CONFIG_$(SPL_TPL_)FIT) += image-fit.o
    107 obj-$(CONFIG_$(SPL_)MULTI_DTB_FIT) += boot_fit.o common_fit.o
    108 obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += image-sig.o
    109 obj-$(CONFIG_IO_TRACE) += iotrace.o
    110 obj-y += memsize.o
    111 obj-y += stdio.o
    112 
    113 ifdef CONFIG_CMD_EEPROM_LAYOUT
    114 obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o
    115 endif
    116 
    117 obj-y += cli.o
    118 obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
    119 obj-$(CONFIG_DFU_OVER_USB) += dfu.o
    120 obj-y += command.o
    121 obj-$(CONFIG_$(SPL_)LOG) += log.o
    122 obj-$(CONFIG_$(SPL_)LOG_CONSOLE) += log_console.o
    123 obj-y += s_record.o
    124 obj-y += xyzModem.o
    125 
    126 obj-$(CONFIG_LIBAVB) += avb_verify.o
    127