diff options
author | onefang | 2020-03-16 14:45:30 +1000 |
---|---|---|
committer | onefang | 2020-03-16 14:45:30 +1000 |
commit | 204a0ea6a57d82e485ea4fbad50d51892d0246fa (patch) | |
tree | f4e4577008cdd8423393e8e823c561535ba70ce7 | |
parent | Add a bunch of test key bindings. (diff) | |
download | opensim-SC-204a0ea6a57d82e485ea4fbad50d51892d0246fa.zip opensim-SC-204a0ea6a57d82e485ea4fbad50d51892d0246fa.tar.gz opensim-SC-204a0ea6a57d82e485ea4fbad50d51892d0246fa.tar.bz2 opensim-SC-204a0ea6a57d82e485ea4fbad50d51892d0246fa.tar.xz |
Add a build script.
-rwxr-xr-x | BuildIt.sh | 33 | ||||
-rw-r--r-- | miniconfig | 12 | ||||
-rw-r--r-- | src/git-sub-modules/README | 3 |
3 files changed, 48 insertions, 0 deletions
diff --git a/BuildIt.sh b/BuildIt.sh new file mode 100755 index 0000000..fdcb747 --- /dev/null +++ b/BuildIt.sh | |||
@@ -0,0 +1,33 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Poor mans git sub modules / subtrees, coz otherwise it gets complex. | ||
4 | if [ ! -d src/git-sub-modules/toybox ]; then | ||
5 | pushd src/git-sub-modules | ||
6 | git clone https://github.com/landley/toybox.git | ||
7 | popd | ||
8 | else | ||
9 | pushd src/git-sub-modules/toybox | ||
10 | git pull | ||
11 | popd | ||
12 | fi | ||
13 | |||
14 | pushd src/git-sub-modules/toybox | ||
15 | #git stash save | ||
16 | #git pull | ||
17 | #git stash pop | ||
18 | popd | ||
19 | |||
20 | mkdir -p build | ||
21 | rm -fr build/toybox | ||
22 | cp -r src/git-sub-modules/toybox build/ | ||
23 | ln -fs ../../../src/boxes build/toybox/toys/boxes | ||
24 | ln -fs ../toys/boxes/handlekeys.c build/toybox/lib | ||
25 | ln -fs ../toys/boxes/handlekeys.h build/toybox/lib | ||
26 | |||
27 | pushd build/toybox >/dev/null | ||
28 | make clean | ||
29 | #make defconfig | ||
30 | ##make menuconfig | ||
31 | make allnoconfig KCONFIG_ALLCONFIG=../../miniconfig || exit 1 | ||
32 | make || exit 1 | ||
33 | popd >/dev/null | ||
diff --git a/miniconfig b/miniconfig new file mode 100644 index 0000000..a8b01c4 --- /dev/null +++ b/miniconfig | |||
@@ -0,0 +1,12 @@ | |||
1 | CONFIG_BOXES=y | ||
2 | CONFIG_HELP=y | ||
3 | CONFIG_PS=y | ||
4 | CONFIG_RM=y | ||
5 | CONFIG_SH=y | ||
6 | CONFIG_SU=y | ||
7 | CONFIG_UUIDGEN=y | ||
8 | CONFIG_TOYBOX_FREE=y | ||
9 | CONFIG_TOYBOX_HELP=y | ||
10 | CONFIG_TOYBOX_HELP_DASHDASH=y | ||
11 | CONFIG_TOYBOX_I18N=y | ||
12 | CONFIG_TOYBOX_SUID=y | ||
diff --git a/src/git-sub-modules/README b/src/git-sub-modules/README new file mode 100644 index 0000000..1cf4e1a --- /dev/null +++ b/src/git-sub-modules/README | |||
@@ -0,0 +1,3 @@ | |||
1 | Put git sub modules here, and then add code to BuildIt.sh to move them to | ||
2 | where they are needed, or link them. Poor man's git sub modules / | ||
3 | subtrees, coz otherwise it gets complex. | ||