mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
sunxi: Use binman for sunxi boards
Move sunxi boards to use binman. This involves adding the image definition to the device tree and using it in the Makefile. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
48549cdf0b
commit
61b994a386
3 changed files with 18 additions and 6 deletions
6
Makefile
6
Makefile
|
@ -1114,10 +1114,8 @@ u-boot-x86-16bit.bin: u-boot FORCE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(CONFIG_ARCH_SUNXI),)
|
ifneq ($(CONFIG_ARCH_SUNXI),)
|
||||||
OBJCOPYFLAGS_u-boot-sunxi-with-spl.bin = -I binary -O binary \
|
u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb FORCE
|
||||||
--pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff
|
$(call if_changed,binman)
|
||||||
u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img FORCE
|
|
||||||
$(call if_changed,pad_cat)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(CONFIG_TEGRA),)
|
ifneq ($(CONFIG_TEGRA),)
|
||||||
|
|
14
arch/arm/dts/sunxi-u-boot.dtsi
Normal file
14
arch/arm/dts/sunxi-u-boot.dtsi
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
binman {
|
||||||
|
filename = "u-boot-sunxi-with-spl.bin";
|
||||||
|
pad-byte = <0xff>;
|
||||||
|
blob {
|
||||||
|
filename = "spl/sunxi-spl.bin";
|
||||||
|
};
|
||||||
|
u-boot-img {
|
||||||
|
pos = <CONFIG_SPL_PAD_TO>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -310,8 +310,8 @@ quiet_cmd_dtc = DTC $@
|
||||||
# Modified for U-Boot
|
# Modified for U-Boot
|
||||||
# Bring in any U-Boot-specific include after the '/dts-v1/;' header
|
# Bring in any U-Boot-specific include after the '/dts-v1/;' header
|
||||||
cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
|
cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
|
||||||
cat $< $(if $(u-boot-dtsi),\
|
cat $< $(if $(u_boot_dtsi),\
|
||||||
| sed 's%^/ {$$%\#include \"$(u-boot-dtsi)\"\n&%') | \
|
| sed 's%^/ {$$%\#include \"$(u_boot_dtsi)\"\n&%') | \
|
||||||
$(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) - ; \
|
$(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) - ; \
|
||||||
$(DTC) -O dtb -o $@ -b 0 \
|
$(DTC) -O dtb -o $@ -b 0 \
|
||||||
-i $(dir $<) $(DTC_FLAGS) \
|
-i $(dir $<) $(DTC_FLAGS) \
|
||||||
|
|
Loading…
Reference in a new issue