summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-02-07 08:56:03 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-07 09:08:25 +0100
commit1091a8858fd27baa996ddd48ded93ea02032da51 (patch)
tree8bcd79c483d22d110a06d04be4d2a3e551a48819
parent11fc617561814567fad4e0b69cbe03e9104e9340 (diff)
downloadbarebox-1091a8858fd27baa996ddd48ded93ea02032da51.tar.gz
barebox-1091a8858fd27baa996ddd48ded93ea02032da51.tar.xz
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 <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220207075604.1014259-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--.gitignore1
-rw-r--r--arch/sandbox/Makefile6
2 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index d551a610d4..0382202bf7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -90,3 +90,4 @@ GTAGS
/allrandom.config
/allyes.config
/compile_commands.json
+/stickypage.bin
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