aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-04-19 21:50:51 -0500
committerRob Landley <rob@landley.net>2015-04-19 21:50:51 -0500
commit5b493dc48db03c7e27c8ce002fe216bcd778fe92 (patch)
treeb7bb7af18aff4d01bab1b635384d455add1aeb33 /scripts
parent3cf9b08cc9ebeddc449638608f7a28c4c4ba20f9 (diff)
downloadtoybox-5b493dc48db03c7e27c8ce002fe216bcd778fe92.tar.gz
Cleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 broke
alphasort), add compile-time probe for config symbol TOYBOX_ON_ANDROID.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genconfig.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index ead5b8a2..b8dc3c79 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -65,6 +65,13 @@ EOF
struct spwd *a = getspnam("root"); return 0;
}
EOF
+
+ # Some commands are android-specific
+ probesymbol TOYBOX_ON_ANDROID -c << EOF
+ #ifndef __ANDROID__
+ #error nope
+ #endif
+EOF
}
genconfig()