summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDenys Vlasenko2020-06-23 21:28:19 +0200
committerDenys Vlasenko2020-06-23 21:28:19 +0200
commit5fa5c4bde8b9ab75fa0ed37ee2fafca3fd46288a (patch)
treede564d978ea2bbf5484f71ea3f181cb4b0a7f541 /scripts
parentd206b1651ac4dc4db1d9bbd172a81da0568b42e8 (diff)
downloadbusybox-5fa5c4bde8b9ab75fa0ed37ee2fafca3fd46288a.zip
busybox-5fa5c4bde8b9ab75fa0ed37ee2fafca3fd46288a.tar.gz
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/randomtest22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/randomtest b/scripts/randomtest
index 94709a9..ec2f095 100755
--- a/scripts/randomtest
+++ b/scripts/randomtest
@@ -113,6 +113,28 @@ if test x"$LIBC" = x"uclibc"; then
echo 'CONFIG_ASH_INTERNAL_GLOB=y' >>.config
fi
+# If musl
+if test x"$LIBC" = x"musl"; then
+ cat .config \
+ | grep -v CONFIG_STATIC \
+ | grep -v CONFIG_LFS \
+ | grep -v CONFIG_EXTRA_COMPAT \
+ | grep -v CONFIG_FEATURE_2_4_MODULES \
+ | grep -v CONFIG_FEATURE_VI_REGEX_SEARCH \
+ | grep -v CONFIG_FEATURE_MOUNT_NFS \
+ | grep -v CONFIG_FEATURE_INETD_RPC \
+ >.config.new
+ mv .config.new .config
+ echo 'CONFIG_STATIC=y' >>.config
+ # with LFS off, uoff_t will have wrong width:
+ echo 'CONFIG_LFS=y' >>.config
+ echo '# CONFIG_EXTRA_COMPAT is not set' >>.config
+ echo '# CONFIG_FEATURE_2_4_MODULES is not set' >>.config
+ echo '# CONFIG_FEATURE_VI_REGEX_SEARCH is not set' >>.config
+ echo '# CONFIG_FEATURE_MOUNT_NFS is not set' >>.config
+ echo '# CONFIG_FEATURE_INETD_RPC is not set' >>.config
+fi
+
# If STATIC, remove some things.
# PAM with static linking is probably pointless
# (but I need to try - now I don't have libpam.a on my system, only libpam.so)