Apply ar71xx fix for broken Ubiquiti bootloader to ath79 as well.
Signed-off-by: Matthias Schiffer <[email protected]>
endef
+define Build/relocate-kernel
+ $(MAKE) -j1 -C
[email protected] KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
+ ( \
+ perl -e '@s = stat("$@"); print pack("N", @s[7])' && \
+ cat "$@" \
+endef
+
define Build/copy-file
cat "$(1)" > "$@"
endef
UBNT_TYPE := XM
UBNT_CHIP := ar7240
ATH_SOC := ar7241
+ KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
endef
define Device/ubnt-xw