add support for custom deb installation

This commit is contained in:
parazyd 2016-10-16 19:34:22 +02:00
parent dffff83572
commit 5ea453c7f3
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
4 changed files with 30 additions and 5 deletions

4
CONTRIBUTORS.md Normal file
View File

@ -0,0 +1,4 @@
Thank you very much for your help and advices!
- Ivaylo Dimitrov <freemangordon@abv.bg>
- Merlijn Wajer <http://wizzup.org>

View File

@ -33,7 +33,7 @@ parted_type="dos"
parted_boot="fat32 2048s 264191s"
parted_root="ext4 264192s 100%"
extra_packages=()
extra_packages+=()
custmodules=()
gitkernel="git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git"
@ -50,6 +50,7 @@ prebuild() {
enablessh
write-fstab
copy-zram-init
install-custom-packages
mkdir -p $R/tmp/kernels/$device_name

View File

@ -19,10 +19,30 @@
## helper functions for arm-sdk
build-image() {
fn build-image "$@"
install-custom-packages() {
fn install-custom-packages
req=(R os device_name strapdir)
ckreq || return 1
case $os in
devuan)
mkdir -p $R/extra/custom-packages
pushd $R/extra/custom-packages
local pkgs=$(find ../$device_name/*.deb)
[[ -n $pkgs ]] && {
for deb in $pkgs; do
ln -sf $deb .
done
install-custdebs
}
popd
rm -rf $R/extra/custom-packages
;;
*)
warn "skipping custom packages. os unsupported."
;;
esac
bootstrap $arch
}
get-kernel-sources() {

@ -1 +1 @@
Subproject commit 331398ff51da55ffa126d3ecab1b1cc6578ef7d4
Subproject commit d28e0a93f4561099adc6c270027ed3331ce44489