mirror of https://github.com/parazyd/arm-sdk.git
add support for custom deb installation
This commit is contained in:
parent
dffff83572
commit
5ea453c7f3
|
|
@ -0,0 +1,4 @@
|
||||||
|
Thank you very much for your help and advices!
|
||||||
|
|
||||||
|
- Ivaylo Dimitrov <freemangordon@abv.bg>
|
||||||
|
- Merlijn Wajer <http://wizzup.org>
|
||||||
|
|
@ -33,7 +33,7 @@ parted_type="dos"
|
||||||
parted_boot="fat32 2048s 264191s"
|
parted_boot="fat32 2048s 264191s"
|
||||||
parted_root="ext4 264192s 100%"
|
parted_root="ext4 264192s 100%"
|
||||||
|
|
||||||
extra_packages=()
|
extra_packages+=()
|
||||||
custmodules=()
|
custmodules=()
|
||||||
|
|
||||||
gitkernel="git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git"
|
gitkernel="git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git"
|
||||||
|
|
@ -50,6 +50,7 @@ prebuild() {
|
||||||
enablessh
|
enablessh
|
||||||
write-fstab
|
write-fstab
|
||||||
copy-zram-init
|
copy-zram-init
|
||||||
|
install-custom-packages
|
||||||
|
|
||||||
mkdir -p $R/tmp/kernels/$device_name
|
mkdir -p $R/tmp/kernels/$device_name
|
||||||
|
|
||||||
|
|
|
||||||
26
lib/helpers
26
lib/helpers
|
|
@ -19,10 +19,30 @@
|
||||||
|
|
||||||
## helper functions for arm-sdk
|
## helper functions for arm-sdk
|
||||||
|
|
||||||
build-image() {
|
install-custom-packages() {
|
||||||
fn build-image "$@"
|
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() {
|
get-kernel-sources() {
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 331398ff51da55ffa126d3ecab1b1cc6578ef7d4
|
Subproject commit d28e0a93f4561099adc6c270027ed3331ce44489
|
||||||
Loading…
Reference in New Issue