From 93cffa18bfabab7ec82cae10eef0a0ba10c7610c Mon Sep 17 00:00:00 2001 From: Lane Jennison Date: Thu, 23 Apr 2020 21:30:57 -0400 Subject: [PATCH] adding image functionality --- config-jenkins-image-family.conf | 23 +++++++++++++++++++++++ jenkins_ci.sh | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 config-jenkins-image-family.conf diff --git a/config-jenkins-image-family.conf b/config-jenkins-image-family.conf new file mode 100644 index 0000000..fcfa5d4 --- /dev/null +++ b/config-jenkins-image-family.conf @@ -0,0 +1,23 @@ +# Read build script documentation https://docs.armbian.com/Developer-Guide_Build-Options/ +# for detailed explanation of these options and for additional options not listed here + +KERNEL_ONLY="no" # leave empty to select each time, set to "yes" or "no" to skip dialog prompt +KERNEL_CONFIGURE="no" # leave empty to select each time, set to "yes" or "no" to skip dialog prompt +CLEAN_LEVEL="make,debs,oldcache,sources" # comma-separated list of clean targets: "make" = make clean for selected kernel and u-boot, + # "debs" = delete packages in "./output/debs" for current branch and family, + # "alldebs" = delete all packages in "./output/debs", "images" = delete "./output/images", + # "cache" = delete "./output/cache", "sources" = delete "./sources" + # "oldcache" = remove old cached rootfs except for the newest 8 files + +DEST_LANG="en_US.UTF-8" # sl_SI.UTF-8, en_US.UTF-8 + +# advanced +EXTERNAL_NEW="prebuilt" # compile and install or install prebuilt additional packages +INSTALL_HEADERS="" # install kernel headers package +LIB_TAG="master" # change to "branchname" to use any branch currently available. +USE_TORRENT="yes" # use torrent network for faster toolchain and cache download +DOWNLOAD_MIRROR="" # set to "china" to use mirrors.tuna.tsinghua.edu.cn +CARD_DEVICE="" # device name /dev/sdx of your SD card to burn directly to the card when done +FORCE_CHECKOUT="no" +EXPERT="yes" +BUILD_DESKTOP="no" diff --git a/jenkins_ci.sh b/jenkins_ci.sh index ef26e94..b061cdb 100755 --- a/jenkins_ci.sh +++ b/jenkins_ci.sh @@ -139,3 +139,7 @@ build_kernel() { } +build_image() { + local build_config=${1} + ./compile.sh ${build_config} BOARD=${ARMBIAN_BOARD} BRANCH=${ARMBIAN_BRANCH} RELEASE=${ARMBIAN_RELEASE} +}