mirror of
https://github.com/pygos/build.git
synced 2024-05-09 07:16:13 +02:00
David Oberhollenzer
c8d01f966a
Been working on this for too long, don't remember the specifics, will add documentation. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
21 lines
517 B
Plaintext
Executable file
21 lines
517 B
Plaintext
Executable file
# inherit package details from kernel package
|
|
source "$SCRIPTDIR/pkg/$LINUXPKG/build"
|
|
DEPENDS="tc-pkgtool"
|
|
SUBPKG="linux-dev"
|
|
|
|
build() {
|
|
local LINUX_CPU=$(get_linux_cpu)
|
|
|
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" mrproper
|
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" headers_check
|
|
}
|
|
|
|
deploy() {
|
|
local LINUX_CPU=$(get_linux_cpu)
|
|
|
|
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" INSTALL_HDR_PATH="$2" headers_install
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$2"
|
|
}
|