]> Git Repo - J-u-boot.git/blame - arch/arm/imx-common/Makefile
board: ge: bx50v3: Disable unused pins
[J-u-boot.git] / arch / arm / imx-common / Makefile
CommitLineData
18936ee2
JL
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, [email protected].
4#
5# (C) Copyright 2011 Freescale Semiconductor, Inc.
6#
1a459660 7# SPDX-License-Identifier: GPL-2.0+
18936ee2
JL
8#
9
cd562c8d 10ifeq ($(SOC),$(filter $(SOC),mx25 mx35 mx5 mx6 mx7 vf610))
71f84ef0 11obj-y = iomux-v3.o
ab3a990b 12endif
ea00e59b 13ifeq ($(SOC),$(filter $(SOC),mx5 mx6))
71f84ef0
MY
14obj-y += timer.o cpu.o speed.o
15obj-$(CONFIG_SYS_I2C_MXC) += i2c-mxv7.o
ea00e59b 16endif
f978559c 17ifeq ($(SOC),$(filter $(SOC),mx7 mx6 mxs))
71f84ef0 18obj-y += misc.o
887717db 19obj-$(CONFIG_SPL_BUILD) += spl.o
8870e459 20endif
cd562c8d
AA
21ifeq ($(SOC),$(filter $(SOC),mx7))
22obj-y += cpu.o
23obj-$(CONFIG_SYS_I2C_MXC) += i2c-mxv7.o
24obj-$(CONFIG_SYSCOUNTER_TIMER) += syscounter.o
25endif
26ifeq ($(SOC),$(filter $(SOC),mx6 mx7))
50a082a8 27obj-y += cache.o init.o
f5514e47 28obj-$(CONFIG_CMD_SATA) += sata.o
93ad66ce 29obj-$(CONFIG_IMX_VIDEO_SKIP) += video.o
de09c43b 30obj-$(CONFIG_IMX_RDC) += rdc-sema.o
6f6058bf 31obj-$(CONFIG_IMX_BOOTAUX) += imx_bootaux.o
7a7281a9 32obj-$(CONFIG_SECURE_BOOT) += hab.o
164d9846 33endif
c7ea243c
SM
34ifeq ($(SOC),$(filter $(SOC),vf610))
35obj-y += ddrmc-vf610.o
36endif
71f84ef0
MY
37obj-$(CONFIG_CMD_BMODE) += cmd_bmode.o
38obj-$(CONFIG_CMD_HDMIDETECT) += cmd_hdmidet.o
0200020b 39obj-$(CONFIG_CMD_DEKBLOB) += cmd_dek.o
18936ee2 40
4e0c8abc
MY
41quiet_cmd_cpp_cfg = CFGS $@
42 cmd_cpp_cfg = $(CPP) $(cpp_flags) -x c -o $@ $<
43
44IMX_CONFIG = $(CONFIG_IMX_CONFIG:"%"=%).cfgtmp
45
46$(IMX_CONFIG): %.cfgtmp: % FORCE
47 $(Q)mkdir -p $(dir $@)
48 $(call if_changed_dep,cpp_cfg)
49
4e0c8abc
MY
50MKIMAGEFLAGS_u-boot.imx = -n $(filter-out $< $(PHONY),$^) -T imximage \
51 -e $(CONFIG_SYS_TEXT_BASE)
52
53u-boot.imx: u-boot.bin $(IMX_CONFIG) FORCE
54 $(call if_changed,mkimage)
55
e64348f5
SB
56ifeq ($(CONFIG_OF_SEPARATE),y)
57MKIMAGEFLAGS_u-boot-dtb.imx = -n $(filter-out $< $(PHONY),$^) -T imximage \
58 -e $(CONFIG_SYS_TEXT_BASE)
59
60u-boot-dtb.imx: u-boot-dtb.bin $(IMX_CONFIG) FORCE
61 $(call if_changed,mkimage)
62endif
63
4e0c8abc
MY
64MKIMAGEFLAGS_SPL = -n $(filter-out $< $(PHONY),$^) -T imximage \
65 -e $(CONFIG_SPL_TEXT_BASE)
66
67SPL: spl/u-boot-spl.bin $(IMX_CONFIG) FORCE
68 $(call if_changed,mkimage)
69
70MKIMAGEFLAGS_u-boot.uim = -A arm -O U-Boot -a $(CONFIG_SYS_TEXT_BASE) \
71 -e $(CONFIG_SYS_TEXT_BASE) -C none
72
73u-boot.uim: u-boot.bin FORCE
74 $(call if_changed,mkimage)
75
76OBJCOPYFLAGS += -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO)
77append = cat $(filter-out $< $(PHONY), $^) >> $@
78
79quiet_cmd_pad_cat = CAT $@
80cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@
81
82u-boot-with-spl.imx: SPL u-boot.uim FORCE
83 $(call if_changed,pad_cat)
84
85u-boot-with-nand-spl.imx: spl/u-boot-nand-spl.imx u-boot.uim FORCE
86 $(call if_changed,pad_cat)
87
88quiet_cmd_u-boot-nand-spl_imx = GEN $@
89cmd_u-boot-nand-spl_imx = (echo -ne '\x00\x00\x00\x00\x46\x43\x42\x20\x01' && \
90 dd bs=1015 count=1 if=/dev/zero 2>/dev/null) | cat - $< > $@
91
92spl/u-boot-nand-spl.imx: SPL FORCE
93 $(call if_changed,u-boot-nand-spl_imx)
94
95targets += $(addprefix ../../../,$(IMX_CONFIG) SPL u-boot.uim spl/u-boot-nand-spl.imx)
This page took 0.235288 seconds and 4 git commands to generate.