mirror of
https://github.com/pygos/build.git
synced 2024-11-25 20:30:43 +01:00
5c8effa301
- Packages that don't download anything don't need a prepare() hook - Packages that inherit the source from other packages should leave it untouched. If they get downloaded first, they should use the hook from the original package. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
24 lines
642 B
Text
Executable file
24 lines
642 B
Text
Executable file
# inherit package details from kernel package
|
|
source "$SCRIPTDIR/pkg/$LINUXPKG/build"
|
|
|
|
build() {
|
|
local INPUT="$1"
|
|
local OUTPUT="$2"
|
|
|
|
local CFGFILE="$SCRIPTDIR/cfg/$CFG/linux.config"
|
|
local LINUX_CPU=$(head -1 "$CFGFILE" | cut -b 3-)
|
|
|
|
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" mrproper
|
|
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" headers_check
|
|
}
|
|
|
|
deploy() {
|
|
local INPUT="$1"
|
|
local OUTPUT="$2"
|
|
|
|
local CFGFILE="$SCRIPTDIR/cfg/$CFG/linux.config"
|
|
local LINUX_CPU=$(head -1 "$CFGFILE" | cut -b 3-)
|
|
|
|
export KBUILD_OUTPUT="$OUTPUT"
|
|
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" INSTALL_HDR_PATH="$TCDIR/$TARGET" headers_install
|
|
}
|