File tree Expand file tree Collapse file tree 4 files changed +20
-9
lines changed
Expand file tree Collapse file tree 4 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,17 @@ general:
55machine :
66 # Add some environment variables
77 environment :
8- CROSS_COMPILE : $([[ $CIRCLE_NODE_INDEX -eq 1 ]] && echo 'i686-w64-mingw32-')
8+ CROSS_COMPILE : $(case $CIRCLE_NODE_INDEX in 0) host='' ;; 1) host='i686-w64-mingw32-' ;; 2) host='arm-linux-androideabi-' ;; esac; echo $host)
9+ PATH : /home/ubuntu/android-toolchain/bin:${PATH}
910
1011# # Customize dependencies
1112dependencies :
1213 pre :
13- - sudo apt-get update; sudo apt-get install bc libfuse-dev libarchive-dev xfsprogs valgrind gcc-mingw-w64-i686 wine
14+ # required for 14.04 container
15+ # - sudo dpkg --add-architecture i386
16+ - sudo apt-get update; sudo apt-get install bc libfuse-dev libarchive-dev xfsprogs valgrind gcc-mingw-w64-i686 wine qemu-user-static
17+ - /usr/local/android-ndk/build/tools/make-standalone-toolchain.sh --platform=android-21 --install-dir=/home/ubuntu/android-toolchain --arch=arm
18+
1419
1520test :
1621 pre :
2227 parallel : true
2328 - cd tools/lkl && make -j8 :
2429 parallel : true
25- - cd tools/lkl && make test :
30+ - cd tools/lkl && if [ $CIRCLE_NODE_INDEX -eq 2 ] ; then make tests/boot-in.o; arm-linux-androideabi-gcc -o tests/boot tests/boot-in.o liblkl.a -static ; fi :
2631 parallel : true
32+ - cd tools/lkl && make test :
33+ parallel : true
2734
2835 - ? >
2936 if [ -n "${RUN_NIGHTLY_BUILD}" ]; then
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ $(TEST_TARGETS): tests/boot
9494
9595# because of libdl, liblkl-hijack will not compile on windows
9696# fortunately, the test target will handle a missing libhijack.so correctly
97- ifeq (,$(filter $(OUTPUT_FORMAT ) ,pe-i386) )
97+ ifeq (,$(filter $(OUTPUT_FORMAT ) ,pe-i386 elf32-littlearm ) )
9898 test : liblkl-hijack$(SOSUF )
9999endif
100100
@@ -117,7 +117,8 @@ cpfromfs$(EXESUF): cptofs$(EXESUF)
117117
118118# because of argp and fuse, none of the binaries will compile on windows
119119# because of libdl, liblkl-hijack will not compile on windows
120- ifneq (,$(filter $(OUTPUT_FORMAT ) ,pe-i386) )
120+ # arm-android neither for the moment
121+ ifneq (,$(filter $(OUTPUT_FORMAT ) ,pe-i386 elf32-littlearm) )
121122 all : $(filter-out liblkl-hijack$(SOSUF ) , $(ALL_LIBRARIES ) )
122123else
123124 all : $(ALL_PROGRAMS ) $(ALL_LIBRARIES )
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ static void panic(void)
266266 assert (0 );
267267}
268268
269- static long gettid (void )
269+ static long _gettid (void )
270270{
271271 return syscall (SYS_gettid );
272272}
@@ -298,7 +298,7 @@ struct lkl_host_operations lkl_host_ops = {
298298 .ioremap = lkl_ioremap ,
299299 .iomem_access = lkl_iomem_access ,
300300 .virtio_devices = lkl_virtio_devs ,
301- .gettid = gettid ,
301+ .gettid = _gettid ,
302302};
303303
304304static int fd_get_capacity (union lkl_disk disk , unsigned long long * res )
Original file line number Diff line number Diff line change @@ -24,10 +24,13 @@ if [ -c /dev/net/tun ]; then
2424fi ;
2525
2626if file ./boot | grep PE32; then
27- WINE=wine
27+ WRAP=wine
28+ elif file ./boot | grep ARM; then
29+ WRAP=qemu-arm-static
2830fi
2931
30- ${TEST_CMD} $WINE ./boot -d $file -t $fstype $tap_args $LKL_TEST_DEBUG $@ || err=$?
32+
33+ ${TEST_CMD} $WRAP ./boot -d $file -t $fstype $tap_args $LKL_TEST_DEBUG $@ || err=$?
3134
3235if [ -c /dev/net/tun ]; then
3336 sudo ip tuntap del dev lkl_boot mode tap || true
You can’t perform that action at this time.
0 commit comments