summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2019-08-27 16:32:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-28 13:47:41 +0200
commitbc195edea16dc6eec7d50a1d9862afe3aa93eb75 (patch)
treeb3a323aab667abc2e24f13d93f887526cefac94c
parent8cccf6961f97160d419a2659056bdc2b89fcaf44 (diff)
downloadbarebox-bc195edea16dc6eec7d50a1d9862afe3aa93eb75.tar.gz
barebox-bc195edea16dc6eec7d50a1d9862afe3aa93eb75.tar.xz
sandbox: redefine optarg and optind to avoid collisions
If we don't do this, the barebox main may fail to parse arguments. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/sandbox/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile
index 85c70b5e80..2a75b81cf6 100644
--- a/arch/sandbox/Makefile
+++ b/arch/sandbox/Makefile
@@ -23,7 +23,8 @@ CFLAGS += -Dmalloc=barebox_malloc -Dcalloc=barebox_calloc \
-Dglob=barebox_glob -Dglobfree=barebox_globfree \
-Dioctl=barebox_ioctl -Dfstat=barebox_fstat \
-Dopendir=barebox_opendir -Dreaddir=barebox_readdir \
- -Dclosedir=barebox_closedir
+ -Dclosedir=barebox_closedir \
+ -Doptarg=barebox_optarg -Doptind=barebox_optind
machdirs := $(patsubst %,arch/sandbox/mach-%/,$(machine-y))