commit b05f9c7

chld  ·  2026-08-29 18:20:54 +0000 UTC
parent 7fd2907
linux-headers: install headers as shown in reade
1 files changed,  +2, -9
+2, -9
 1@@ -18,14 +18,7 @@ build() {
 2 		*) karch="$host_arch" ;;
 3 	esac
 4 
 5-	msg "preparing kernel tree..."
 6-	# gmake mrproper ARCH="$karch" HOSTCC="cc -static" || die "mrproper failed"
 7-
 8-	msg "installing headers into staging..."
 9-	gmake headers ARCH="$karch" HOSTCC="cc -static" || die "headers failed"
10-
11-	find usr/include ! -name "*.h" -delete
12-	mkdir -p "$PKG/$PREFIX"
13-	cp -rv usr/include "$PKG/$PREFIX/" || die "header copy failed"
14+	msg "installing headers..."
15+	gmake install DESTDIR="$PKG" PREFIX="$PKG" ARCH="$karch" HOSTCC="cc -static" || die "headers failed"
16 }
17 . ${0%/*}/../../libsh/libdmake.sh