]> Git Repo - J-u-boot.git/blame - arch/arm/imx-common/Makefile
mx6sabre: Select CMD_EXT4 options
[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
cfd701b5 10ifeq ($(SOC),$(filter $(SOC),mx25 mx35 mx5 mx6 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
8870e459 17ifeq ($(SOC),$(filter $(SOC),mx6 mxs))
71f84ef0 18obj-y += misc.o
887717db 19obj-$(CONFIG_SPL_BUILD) += spl.o
8870e459 20endif
164d9846 21ifeq ($(SOC),$(filter $(SOC),mx6))
f5514e47 22obj-$(CONFIG_CMD_SATA) += sata.o
93ad66ce 23obj-$(CONFIG_IMX_VIDEO_SKIP) += video.o
164d9846 24endif
71f84ef0
MY
25obj-$(CONFIG_CMD_BMODE) += cmd_bmode.o
26obj-$(CONFIG_CMD_HDMIDETECT) += cmd_hdmidet.o
18936ee2 27
4e0c8abc
MY
28quiet_cmd_cpp_cfg = CFGS $@
29 cmd_cpp_cfg = $(CPP) $(cpp_flags) -x c -o $@ $<
30
31IMX_CONFIG = $(CONFIG_IMX_CONFIG:"%"=%).cfgtmp
32
33$(IMX_CONFIG): %.cfgtmp: % FORCE
34 $(Q)mkdir -p $(dir $@)
35 $(call if_changed_dep,cpp_cfg)
36
4e0c8abc
MY
37MKIMAGEFLAGS_u-boot.imx = -n $(filter-out $< $(PHONY),$^) -T imximage \
38 -e $(CONFIG_SYS_TEXT_BASE)
39
40u-boot.imx: u-boot.bin $(IMX_CONFIG) FORCE
41 $(call if_changed,mkimage)
42
e64348f5
SB
43ifeq ($(CONFIG_OF_SEPARATE),y)
44MKIMAGEFLAGS_u-boot-dtb.imx = -n $(filter-out $< $(PHONY),$^) -T imximage \
45 -e $(CONFIG_SYS_TEXT_BASE)
46
47u-boot-dtb.imx: u-boot-dtb.bin $(IMX_CONFIG) FORCE
48 $(call if_changed,mkimage)
49endif
50
4e0c8abc
MY
51MKIMAGEFLAGS_SPL = -n $(filter-out $< $(PHONY),$^) -T imximage \
52 -e $(CONFIG_SPL_TEXT_BASE)
53
54SPL: spl/u-boot-spl.bin $(IMX_CONFIG) FORCE
55 $(call if_changed,mkimage)
56
57MKIMAGEFLAGS_u-boot.uim = -A arm -O U-Boot -a $(CONFIG_SYS_TEXT_BASE) \
58 -e $(CONFIG_SYS_TEXT_BASE) -C none
59
60u-boot.uim: u-boot.bin FORCE
61 $(call if_changed,mkimage)
62
63OBJCOPYFLAGS += -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO)
64append = cat $(filter-out $< $(PHONY), $^) >> $@
65
66quiet_cmd_pad_cat = CAT $@
67cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@
68
69u-boot-with-spl.imx: SPL u-boot.uim FORCE
70 $(call if_changed,pad_cat)
71
72u-boot-with-nand-spl.imx: spl/u-boot-nand-spl.imx u-boot.uim FORCE
73 $(call if_changed,pad_cat)
74
75quiet_cmd_u-boot-nand-spl_imx = GEN $@
76cmd_u-boot-nand-spl_imx = (echo -ne '\x00\x00\x00\x00\x46\x43\x42\x20\x01' && \
77 dd bs=1015 count=1 if=/dev/zero 2>/dev/null) | cat - $< > $@
78
79spl/u-boot-nand-spl.imx: SPL FORCE
80 $(call if_changed,u-boot-nand-spl_imx)
81
82targets += $(addprefix ../../../,$(IMX_CONFIG) SPL u-boot.uim spl/u-boot-nand-spl.imx)
This page took 0.160573 seconds and 4 git commands to generate.