aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbhgv <bhgv.empire@gmail.com>2018-03-02 04:05:25 +0200
committerbhgv <bhgv.empire@gmail.com>2018-03-02 04:05:25 +0200
commitd62aed582bf9c4359527aabfc10e6bb1bda207c4 (patch)
tree42010d1ae56b588184cf3957e4d8288564c95f2c
parent0e00ccc314faa6ad00e55c4a2b09adff5a8c9459 (diff)
ready to build under Linux to Android
-rwxr-xr-xbld.sh10
-rwxr-xr-xcln.sh15
-rwxr-xr-x[-rw-r--r--]dis/demo/lego/clockreg0
-rwxr-xr-x[-rw-r--r--]dis/demo/ns/runns0
-rwxr-xr-x[-rw-r--r--]dis/demo/odbc/runodbc0
-rwxr-xr-x[-rw-r--r--]dis/demo/spree/spreeclient0
-rwxr-xr-x[-rw-r--r--]dis/demo/whiteboard/runwb0
-rwxr-xr-x[-rw-r--r--]dis/svc/auth0
-rwxr-xr-x[-rw-r--r--]dis/svc/net0
-rwxr-xr-x[-rw-r--r--]dis/svc/registry0
-rwxr-xr-x[-rw-r--r--]dis/svc/rstyx0
-rwxr-xr-x[-rw-r--r--]dis/svc/styx0
-rw-r--r--mkconfig4
-rw-r--r--mkfile8
14 files changed, 28 insertions, 9 deletions
diff --git a/bld.sh b/bld.sh
index 402eb33..8dab3a1 100755
--- a/bld.sh
+++ b/bld.sh
@@ -1,13 +1,17 @@
#!/bin/sh
-export NDK=$(PWD)/../android-ndk-r10e
+export NDK=$PWD/../android-ndk-r10e
#python %NDK%/build/tools/make_standalone_toolchain.py -v --arch arm --api 17 --install-dir=ndk_toolchain
-export ANDR_TOOLCHAIN=$(PWD)/../toolchain
+export ANDR_TOOLCHAIN=$PWD/../toolchain
#$(NDK)/build/tools/make-standalone-toolchain.sh --platform=android-14 --arch=arm --install-dir=$(ANDR_TOOLCHAIN) --ndk-dir=$(NDK) #--system=windows-x86_64
-export PATH=$(PWD)/Linux/386/bin:$(ANDR_TOOLCHAIN)/bin:$(PATH)
+export PATH=$PWD/Linux/386/bin:$ANDR_TOOLCHAIN/bin:$PATH
+
+export ROOT=$PWD
+
+ln -s $ANDR_TOOLCHAIN ./ndk_toolchain
mk install
diff --git a/cln.sh b/cln.sh
new file mode 100755
index 0000000..95798d1
--- /dev/null
+++ b/cln.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+#export NDK=$PWD/../android-ndk-r10e
+
+#python %NDK%/build/tools/make_standalone_toolchain.py -v --arch arm --api 17 --install-dir=ndk_toolchain
+
+export ANDR_TOOLCHAIN=$PWD/../toolchain
+#$(NDK)/build/tools/make-standalone-toolchain.sh --platform=android-14 --arch=arm --install-dir=$(ANDR_TOOLCHAIN) --ndk-dir=$(NDK) #--system=windows-x86_64
+
+export PATH=$PWD/Linux/386/bin:$ANDR_TOOLCHAIN/bin:$PATH
+
+export ROOT=$PWD
+
+mk clean
+
diff --git a/dis/demo/lego/clockreg b/dis/demo/lego/clockreg
index 9c0c644..9c0c644 100644..100755
--- a/dis/demo/lego/clockreg
+++ b/dis/demo/lego/clockreg
diff --git a/dis/demo/ns/runns b/dis/demo/ns/runns
index 6394c46..6394c46 100644..100755
--- a/dis/demo/ns/runns
+++ b/dis/demo/ns/runns
diff --git a/dis/demo/odbc/runodbc b/dis/demo/odbc/runodbc
index d7e6365..d7e6365 100644..100755
--- a/dis/demo/odbc/runodbc
+++ b/dis/demo/odbc/runodbc
diff --git a/dis/demo/spree/spreeclient b/dis/demo/spree/spreeclient
index 0dd9aa1..0dd9aa1 100644..100755
--- a/dis/demo/spree/spreeclient
+++ b/dis/demo/spree/spreeclient
diff --git a/dis/demo/whiteboard/runwb b/dis/demo/whiteboard/runwb
index f64a638..f64a638 100644..100755
--- a/dis/demo/whiteboard/runwb
+++ b/dis/demo/whiteboard/runwb
diff --git a/dis/svc/auth b/dis/svc/auth
index b5547af..b5547af 100644..100755
--- a/dis/svc/auth
+++ b/dis/svc/auth
diff --git a/dis/svc/net b/dis/svc/net
index 437c631..437c631 100644..100755
--- a/dis/svc/net
+++ b/dis/svc/net
diff --git a/dis/svc/registry b/dis/svc/registry
index 4d183cb..4d183cb 100644..100755
--- a/dis/svc/registry
+++ b/dis/svc/registry
diff --git a/dis/svc/rstyx b/dis/svc/rstyx
index 22f1dd0..22f1dd0 100644..100755
--- a/dis/svc/rstyx
+++ b/dis/svc/rstyx
diff --git a/dis/svc/styx b/dis/svc/styx
index 3c5fde8..3c5fde8 100644..100755
--- a/dis/svc/styx
+++ b/dis/svc/styx
diff --git a/mkconfig b/mkconfig
index 8db822b..623033c 100644
--- a/mkconfig
+++ b/mkconfig
@@ -4,7 +4,7 @@
# They are almost always the same.
# On Nt systems, the ROOT path MUST be of the form `drive:/path'
-ROOT=$PWD
+ROOT=$ROOT
#
# Specify the flavour of Tk (std for standard builds)
@@ -14,7 +14,7 @@ TKSTYLE=std
#
# Except for building kernels, SYSTARG must always be the same as SYSHOST
#
-SYSHOST=Nt #Plan9 # build system OS type (Hp, Inferno, Irix, Linux, MacOSX, Nt, Plan9, Solaris)
+SYSHOST=Linux #Nt #Plan9 # build system OS type (Hp, Inferno, Irix, Linux, MacOSX, Nt, Plan9, Solaris)
SYSTARG=Android #Linux #$SYSHOST # target system OS type (Hp, Inferno, Irix, Linux, Nt, Plan9, Solaris)
#
diff --git a/mkfile b/mkfile
index ec9e068..585055e 100644
--- a/mkfile
+++ b/mkfile
@@ -12,8 +12,8 @@ EMUDIRS=\
libmp\
libsec\
libmath\
- utils/iyacc\
- limbo\
+# utils/iyacc\
+# limbo\
libinterp\
libkeyring\
libdraw\
@@ -24,8 +24,8 @@ EMUDIRS=\
libmemlayer\
libdynld\
liblodepng\
- utils/data2c\
- utils/ndate\
+# utils/data2c\
+# utils/ndate\
emu\
KERNEL_DIRS=\