From 1091a8858fd27baa996ddd48ded93ea02032da51 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Mon, 7 Feb 2022 08:56:03 +0100 Subject: sandbox: symlink stickypage.bin into build directory Sandbox will try to access a stickypage.bin in the same directory if possible. Instead of relying on users to copy it there, just create a symlink. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20220207075604.1014259-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- arch/sandbox/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arch/sandbox') diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index 2cf51fa349..aee6bccc9c 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -74,6 +74,12 @@ cmd_barebox__ = $(CC) -o $@ $(BAREBOX_LDFLAGS) common-y += $(BOARD) arch/sandbox/os/ arch/sandbox/lib/ +stickypage.bin: + @$(kecho) " LN stickypage.bin" + @ln -fs arch/sandbox/board/stickypage.bin stickypage.bin + +KBUILD_IMAGE := barebox stickypage.bin + common-$(CONFIG_OFTREE) += arch/sandbox/dts/ CLEAN_FILES += $(BOARD)/barebox.lds -- cgit v1.2.3