mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
David Oberhollenzer
21342dee8e
Instead of prefixing the search path with $PKGDEPLOYDIR and then stripping the prefix off again every single time, do that inside the pkg_scan_dir function. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
24 lines
683 B
Text
Executable file
24 lines
683 B
Text
Executable file
# inherit package details from kernel package
|
|
source "$SCRIPTDIR/pkg/${PREFERED_PROVIDER[linux]}/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="$PKGDEPLOYDIR" headers_install
|
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/linux-dev.desc" "$PKGDEPLOYDIR"
|
|
|
|
echo "dir include 0755 0 0" > "$PKGDEPLOYDIR/linux-dev.files"
|
|
|
|
pkg_scan_dir "include" >> "$PKGDEPLOYDIR/linux-dev.files"
|
|
}
|