Commit 9fdf4bb8 authored by Angus Ainslie's avatar Angus Ainslie Committed by Angus Ainslie (Purism)

build_kernel_deb.sh : build the rsi upgrade modules

parent 459724a6
node {
gitUrl = 'https://source.puri.sm/librem5/image-builder.git'
artifacts = 'files/linux-*.deb,kernel-git*.txt'
artifacts = 'files/linux-*.deb,kernel-git*.txt,files/rsi_*.tar'
branch = 'master'
parameters {
......
......@@ -112,6 +112,22 @@ cp ../*${COMPILER_ARCH}.deb ${KERNEL_OUTPUT}
cd ${CWD}
RSI_VER=RS9116.NB0.NL.PURISM_FW_UPGRADE.LNX.1.0
tar -xf files/${RSI_VER}.tgz
RSI_BUILD_PATH=${RSI_VER}/rsi/
ESCAPED_KERNEL_DIR=$(echo "${LINUX_DIR}" | sed 's/\//\\\//g')
sed "s/KERNELDIR=.*/KERNELDIR=${ESCAPED_KERNEL_DIR}/" -i ${RSI_BUILD_PATH}/Makefile
cd ${RSI_BUILD_PATH}
make ${MAKE_OPTS} ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILER} -C ${CWD}/${LINUX_DIR} M=$PWD modules
cd ${CWD}/${RSI_BUILD_PATH} && tar -cf ${CWD}/../files/rsi_upgrade.tar *.ko
cd ${CWD}/${RSI_VER}/Firmware && tar -cf ${CWD}/../files/rsi_firmware.tar *
cd ${CWD}
echo ${KERNEL_REPO} > kernel-git-${ARCH}.txt
git log | head -n 1 | awk '{ print $2 };' >> kernel-git-${ARCH}.txt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment