diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-09-03 23:03:56 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-09-03 23:03:56 +0200 |
commit | ef44aa7a3551410605b967f666ccb632873fcfd2 (patch) | |
tree | 92d5bc6e09f3c2f9b7c8ccecfee21f03a0953569 /packages/linux-kernel/build-linux-firmware.sh | |
parent | 68c5264a88756c2aa7cee00c37e0f74ffc02e6ea (diff) | |
download | vyos-build-ef44aa7a3551410605b967f666ccb632873fcfd2.tar.gz vyos-build-ef44aa7a3551410605b967f666ccb632873fcfd2.zip |
Kernel: move to fpm build script
Diffstat (limited to 'packages/linux-kernel/build-linux-firmware.sh')
-rwxr-xr-x | packages/linux-kernel/build-linux-firmware.sh | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/packages/linux-kernel/build-linux-firmware.sh b/packages/linux-kernel/build-linux-firmware.sh index 37a3768a..aca88907 100755 --- a/packages/linux-kernel/build-linux-firmware.sh +++ b/packages/linux-kernel/build-linux-firmware.sh @@ -68,20 +68,12 @@ do FW_DIR="${VYOS_FIRMWARE_DIR}/lib/firmware/$(dirname ${FW})" mkdir -p ${FW_DIR} echo "I: install firmware: ${FW}" - cp ${CWD}/linux-firmware/${FW} ${FW_DIR} + cp ${CWD}/linux-firmware/${FW} ${FW_DIR} done -# Describe Debian package -mkdir ${VYOS_FIRMWARE_DIR}/DEBIAN -cat << EOF >${VYOS_FIRMWARE_DIR}/DEBIAN/control -Package: ${VYOS_FIRMWARE_NAME} -Version: ${GIT_COMMIT} -Section: kernel -Priority: extra -Architecture: all -Maintainer: VyOS Package Maintainers <maintainers@vyos.net> -Description: Firmware blobs for use with the Linux kernel -EOF +echo "I: Create linux-firmware package" +cd ${CWD} +fpm --input-type dir --output-type deb --name ${VYOS_FIRMWARE_NAME} \ + --version ${GIT_COMMIT} --deb-compression xz -C ${VYOS_FIRMWARE_DIR} -# Build Debian package -fakeroot dpkg-deb --build ${VYOS_FIRMWARE_DIR} +rm -rf ${VYOS_FIRMWARE_DIR} |