mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Fix rpi3 build
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
88f6542fad
commit
5307722cc2
3 changed files with 18 additions and 1017 deletions
|
@ -16,5 +16,16 @@ deploy() {
|
||||||
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
||||||
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" INSTALL_HDR_PATH="$2" headers_install
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" INSTALL_HDR_PATH="$2" headers_install
|
||||||
|
|
||||||
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$2"
|
cp "$SCRIPTDIR/pkg/$PKGNAME/linux-dev.desc" "$2"
|
||||||
|
|
||||||
|
echo "dir include 0755 0 0" > "$2/linux-dev.files"
|
||||||
|
|
||||||
|
find -H "$2/include" -type d -printf "dir %p 0%m 0 0\\n" |\
|
||||||
|
tail -n +2 | sed "s#$2/##g" >> "$2/linux-dev.files"
|
||||||
|
|
||||||
|
find -H "$2/include" -type l -printf "slink %p 0%m 0 0 %l\\n" |\
|
||||||
|
sed "s#$2/##g" >> "$2/linux-dev.files"
|
||||||
|
|
||||||
|
find -H "$2/include" -type f -printf "file %p 0%m 0 0\\n" |\
|
||||||
|
sed "s#$2/##g" >> "$2/linux-dev.files"
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,7 @@ build() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local DEPLOY="$2"
|
local DEPLOY="$2"
|
||||||
|
|
||||||
pkg install -om -r "$PKGDEPLOYDIR/boot" -R "$REPODIR" $DEPENDS
|
pkg install -om -r "$PKGBUILDDIR/boot" -R "$REPODIR" $DEPENDS
|
||||||
|
|
||||||
# copy files from this package
|
# copy files from this package
|
||||||
cp "$SCRIPTDIR/pkg/$PKGNAME/cmdline.txt" "$PKGBUILDDIR/boot"
|
cp "$SCRIPTDIR/pkg/$PKGNAME/cmdline.txt" "$PKGBUILDDIR/boot"
|
||||||
|
@ -28,6 +28,11 @@ deploy() {
|
||||||
local DEPLOY="$2"
|
local DEPLOY="$2"
|
||||||
|
|
||||||
tar czf "$DEPLOY/$PKGNAME.tar.gz" *
|
tar czf "$DEPLOY/$PKGNAME.tar.gz" *
|
||||||
|
|
||||||
|
touch "$2/$PKGNAME.files"
|
||||||
|
cat > "$2/$PKGNAME.desc" <<_EOF
|
||||||
|
name $PKGNAME
|
||||||
|
_EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
check_update() {
|
check_update() {
|
||||||
|
|
Loading…
Reference in a new issue