summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/Makefile
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-08-17 09:39:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-08-18 07:54:28 +0200
commitaf0c0b3f99c94df502276522197bf05d24444b96 (patch)
treee5877d5844485d6e991c5f1259dcc2a95d632f73 /arch/sandbox/Makefile
parentc63f4e88caf158a044ec3e6a5f39dd0561f734ca (diff)
downloadbarebox-af0c0b3f99c94df502276522197bf05d24444b96.tar.gz
barebox-af0c0b3f99c94df502276522197bf05d24444b96.tar.xz
sandbox: store stickypage in runtime dir
The stickypage is a hack to have a 4K hostfile persist over reboot. This was so far done by compiling the stickypage separately and referencing it from the device tree via the magic $build variable that expands to the working directory. This breaks a number of assumptions: - KBUILD_IMAGE: should only have a single entry, e.g. barebox-flash-images ends up with two files per one line - stickypage must be writable, which may fail if barebox is installed, e.g. in r/o Nix Store Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230817073941.1261154-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/Makefile')
-rw-r--r--arch/sandbox/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile
index d5ba05ba86..04fb7a1f1d 100644
--- a/arch/sandbox/Makefile
+++ b/arch/sandbox/Makefile
@@ -31,7 +31,8 @@ KBUILD_CFLAGS += -Dmalloc=barebox_malloc -Dcalloc=barebox_calloc \
-Dclosedir=barebox_closedir -Dreadlink=barebox_readlink \
-Doptarg=barebox_optarg -Doptind=barebox_optind \
-Dsetjmp=barebox_setjmp -Dlongjmp=barebox_longjmp \
- -Dputchar=barebox_putchar
+ -Dmkdir=barebox_mkdir -Ddirname=barebox_dirname \
+ -Dremove=barebox_remove -Dputchar=barebox_putchar
machdirs := $(patsubst %,arch/sandbox/mach-%/,$(machine-y))
@@ -75,11 +76,7 @@ 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
+KBUILD_IMAGE := barebox
common-$(CONFIG_OFTREE) += arch/sandbox/dts/