1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +01:00
build/pkg/linux_headers/build
David Oberhollenzer 7dd6306b30 cleanup: derive LINUX_CPU from TARGET, merge linux packages
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-19 21:50:57 +02:00

17 lines
439 B
Text
Executable file

# inherit package details from kernel package
source "$SCRIPTDIR/pkg/$LINUXPKG/build"
DEPENDS=""
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
}