diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-10-12 08:26:11 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-13 08:45:15 +0200 |
commit | 606300a214f544403ffbc1c8169abbf89cb2b8c5 (patch) | |
tree | 7399c109ca1e042e3291e2085f304c58ba2f2448 /arch/sandbox/Makefile | |
parent | e3363cf8ff06e9f7db60cca2b89b77a62f7f3a7c (diff) | |
download | barebox-606300a214f544403ffbc1c8169abbf89cb2b8c5.tar.gz barebox-606300a214f544403ffbc1c8169abbf89cb2b8c5.tar.xz |
sandbox: hostfile: support anonymous hostfiles in device tree
So far use of hostfile in the device tree required us to hard code a file
name. If we instead create a temporary file on demand, we can support:
- environment
- barebox-state
- syscon for reset source and reboot mode
out of the box with no dependency on external files.
Do the necessary, so a hostfile device tree node without a
barebox,filename gets a temporary file generated with the appropriate
size.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/Makefile')
-rw-r--r-- | arch/sandbox/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index 09112c3ba8..23832e6b2f 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -24,6 +24,7 @@ KBUILD_CFLAGS += -Dmalloc=barebox_malloc -Dcalloc=barebox_calloc \ -Dgetenv=barebox_getenv -Dprintf=barebox_printf \ -Dglob=barebox_glob -Dglobfree=barebox_globfree \ -Dioctl=barebox_ioctl -Dfstat=barebox_fstat \ + -Dftruncate=barebox_ftruncate \ -Dopendir=barebox_opendir -Dreaddir=barebox_readdir \ -Dclosedir=barebox_closedir -Dreadlink=barebox_readlink \ -Doptarg=barebox_optarg -Doptind=barebox_optind |