arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

commit 7122ed97ac5431af715fe63fdde69e6f515d280e
parent 8dbb5a5d79961a2ce0dc63244411023c5ae48d79
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 22 Apr 2016 19:14:07 +0200

custom packages inside its own fn

Diffstat:
Marm/README.md | 4++--
Marm/profiles/common-devuan | 16++++++++++++++--
2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/arm/README.md b/arm/README.md @@ -42,9 +42,9 @@ print ':mipsel:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x0 print ':ppc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-ppc:' | sudo tee /proc/sys/fs/binfmt_misc/register -print ':sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-sh4:' | sudo tee/proc/sys/fs/binfmt_misc/register +print ':sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-sh4:' | sudo tee /proc/sys/fs/binfmt_misc/register -print ':sh4eb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sh4eb:' | sudo tee/proc/sys/fs/binfmt_misc/register +print ':sh4eb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sh4eb:' | sudo tee /proc/sys/fs/binfmt_misc/register print ':sparc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sparc:' | sudo tee /proc/sys/fs/binfmt_misc/register ``` diff --git a/arm/profiles/common-devuan b/arm/profiles/common-devuan @@ -136,11 +136,23 @@ EOF notice "Wrote $writebase/etc/apt/sources.list" } +copy-pkginclude() { + fn copy-pkginclude + + sudo mkdir ${writebase}/pkginclude + pkgincludes=`find $R/arm/extra/pkginclude -type f -name "*.deb"` + [[ -z $pkgincludes ]] || { + notice "Copying your custom packages" + for i in ${pkgincludes}; do + sudo cp -v ${i} ${writebase}/pkginclude/ + done + } +} + write-third-stage() { fn write-third-stage - sudo mkdir ${writebase}/pkginclude - sudo cp $R/arm/extra/pkginclude/*.deb ${writebase}/pkginclude/ + copy-pkginclude cat <<EOF | sudo tee ${writebase}/third-stage #!/bin/bash