Moves ARRAY_SIZE into the kernel only (XCC)
[akaros.git] / tools / jenkins / launcher.sh
index 3824e2b..5d5c07f 100755 (executable)
@@ -33,7 +33,7 @@ readonly BUSYBOX_CONF_FILE=tools/patches/busybox/busybox-1.17.3-config
 ################################################################################
 function last_stable_build() {
        curl -s localhost:8080/job/$JOB_NAME/lastStableBuild/api/json?tree=actions%5bbuildsByBranchName%5brevision%5bSHA1%5d%5d%5d | \
-               python -c 'import sys, json; print json.load(sys.stdin)["actions"][2]["buildsByBranchName"]["'$GIT_BRANCH'"]["revision"]["SHA1"]'
+               python -c 'import sys, json; print json.load(sys.stdin)["actions"][3]["buildsByBranchName"]["'$GIT_BRANCH'"]["revision"]["SHA1"]'
 }
 
 ################################################################################
@@ -69,7 +69,6 @@ fi
 
 function add_cross_compiler_to_path() {
        export PATH=$WORKSPACE/install/riscv-ros-gcc/bin:$PATH
-       export PATH=$WORKSPACE/install/i686-ros-gcc/bin:$PATH
        export PATH=$WORKSPACE/install/x86_64-ros-gcc/bin:$PATH
 }
 
@@ -89,12 +88,6 @@ function build_config() {
        case "$COMPILATION_ARCH" in
        RISCV)  make ARCH=riscv defconfig
            ;;
-       I686)  make ARCH=x86 defconfig
-                  sed -i -e 's/CONFIG_64BIT=y/# CONFIG_64BIT is not set/' \
-                         -e 's/# CONFIG_X86_32 is not set/CONFIG_X86_32=y/' \
-                         -e 's/CONFIG_X86_64=y/# CONFIG_X86_64 is not set/' \
-                         .config
-           ;;
        X86_64)  make ARCH=x86 defconfig
            ;;
        esac
@@ -104,6 +97,7 @@ function build_config() {
        # results if needed.
        echo "CONFIG_KERNEL_TESTING=y" >> .config
        echo "CONFIG_USERSPACE_TESTING=y" >> .config
+       echo "CONFIG_LOUSY_LAPIC_TIMER=y" >> .config
        # Set all config variables dependent on the above changes to their defaults
        # without prompting
        make olddefconfig 
@@ -113,7 +107,6 @@ function build_config() {
 
 function build_cross_compiler() {
        declare -A ARCH_SUBDIRS=( ["RISCV"]="riscv-ros-gcc" \
-                                 ["I686"]="i686-ros-gcc" \
                                  ["X86_64"]="x86_64-ros-gcc" )
 
        echo -e "\n[BUILD_CROSS_COMPILER]: Begin"
@@ -129,7 +122,6 @@ function build_cross_compiler() {
        echo "# Number of make jobs to spawn.  
 MAKE_JOBS := 3
 RISCV_INSTDIR         := $WORKSPACE/install/${ARCH_SUBDIRS["RISCV"]}/
-I686_INSTDIR          := $WORKSPACE/install/${ARCH_SUBDIRS["I686"]}/
 X86_64_INSTDIR        := $WORKSPACE/install/${ARCH_SUBDIRS["X86_64"]}/
 " > Makelocal
 
@@ -141,8 +133,6 @@ X86_64_INSTDIR        := $WORKSPACE/install/${ARCH_SUBDIRS["X86_64"]}/
        case "$COMPILATION_ARCH" in
        RISCV)  make riscv
            ;;
-       I686)  make i686
-           ;;
        X86_64)  make x86_64
            ;;
        esac