Our last sync with the kernel was 5.1. We are so out of sync now, that tracking the patches and backporting them one by one makes little sense and it's going to take ages. This is an attempt to sync up Makefiles to 6.1. Unfortunately due to sheer amount of patches this is not easy to review, but that's what we decided during a community call for the bump to 5.1, so we are following the same guidelines here. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>a #rebased on -next
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (C) 2019 Hannes Schmelzer <oe5hpm@oevsv.at> -
|
|
# B&R Industrial Automation GmbH - http://www.br-automation.com
|
|
#
|
|
|
|
hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE) | sed -e 's/am335x-//')
|
|
|
|
payload_off :=$(shell printf "%d" $(CONFIG_SYS_SPI_U_BOOT_OFFS))
|
|
|
|
quiet_cmd_prodbin = PRODBIN $@ $(payload_off)
|
|
cmd_prodbin = \
|
|
dd if=/dev/zero ibs=1M count=2 2>/dev/null | tr "\000" "\377" >$@ && \
|
|
dd conv=notrunc bs=1 if=MLO.byteswap of=$@ seek=0 2>/dev/null && \
|
|
dd bs=1 if=u-boot-dtb.img of=$@ seek=$(payload_off) 2>/dev/null
|
|
|
|
quiet_cmd_prodzip = SAPZIP $@
|
|
cmd_prodzip = \
|
|
test -d misc && rm -r misc; \
|
|
mkdir misc && \
|
|
cp MLO.byteswap misc/ && \
|
|
cp spl/u-boot-spl.bin misc/ && \
|
|
cp u-boot-dtb.img misc/ && \
|
|
zip -9 -r $@ misc/* >/dev/null $<
|
|
|
|
INPUTS-y += $(hw-platform-y)_prog.bin
|
|
INPUTS-y += $(hw-platform-y)_prod.zip
|
|
|
|
$(hw-platform-y)_prog.bin: u-boot-dtb.img spl/u-boot-spl.bin FORCE
|
|
$(call if_changed,prodbin)
|
|
|
|
$(hw-platform-y)_prod.zip: $(hw-platform-y)_prog.bin FORCE
|
|
$(call if_changed,prodzip)
|