diff options
Diffstat (limited to 'scripts/genconfig.sh')
-rwxr-xr-x | scripts/genconfig.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh index 724888b3..21e6c7b7 100755 --- a/scripts/genconfig.sh +++ b/scripts/genconfig.sh @@ -33,12 +33,10 @@ probeconfig() # Probe for container support on target probesymbol TOYBOX_CONTAINER << EOF - #include <stdio.h> - #include <sys/syscall.h> #include <linux/sched.h> int x=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET; - int main(int argc, char *argv[]){printf("%d", x+SYS_unshare+ SYS_setns);} + int main(int argc, char *argv[]) { setns(0,0); return unshare(x); } EOF probesymbol TOYBOX_FIFREEZE -c << EOF @@ -87,7 +85,7 @@ EOF EOF probesymbol TOYBOX_ANDROID_SCHEDPOLICY << EOF - #include <processgroup/sched_policy.h> + #include <cutils/sched_policy.h> int main(int argc,char *argv[]) { get_sched_policy_name(0); } EOF @@ -162,7 +160,7 @@ do PENDING="$PENDING $NAME" || WORKING="$WORKING $NAME" done && -echo -e "clean::\n\t@rm -f $WORKING $PENDING" && +echo -e "clean::\n\trm -f $WORKING $PENDING" && echo -e "list:\n\t@echo $(echo $WORKING | tr ' ' '\n' | sort | xargs)" && echo -e "list_pending:\n\t@echo $(echo $PENDING | tr ' ' '\n' | sort | xargs)" && echo -e ".PHONY: $WORKING $PENDING" | $SED 's/ \([^ ]\)/ test_\1/g' |