This commit is contained in:
build@apk-groulx 2023-04-23 05:54:25 +00:00
parent ca9859445f
commit f18d763dc7

View file

@ -25,7 +25,7 @@ source="
config-changes-rm2.armv7
config-changes-rm2.armhf
"
arch="armv7 armhf"
arch="armv7 armhf x86_64"
license="GPL-2.0"
_flavors=
for _i in $source; do
@ -138,10 +138,11 @@ build() {
}
_package() {
local _buildflavor="$1" _outdir="$2"
local _flavor="$1" _outdir="$2"
local _builddir="$srcdir"/build-$_flavor
local _abi_release="$(make -C "$_builddir" -s kernelrelease)"
cd "$srcdir"/build-$_buildflavor
cd "$srcdir"/build-$_flavor
mkdir -p "$_outdir"/boot "$_outdir"/lib/modules
@ -158,7 +159,7 @@ _package() {
;;
esac
cd "$srcdir"/build-$_buildflavor
cd "$srcdir"/build-$_flavor
# modules_install seems to regenerate a defect Modules.symvers. Work
# around it by backing it up and restore it after modules_install
cp Module.symvers Module.symvers.backup
@ -176,7 +177,7 @@ _package() {
rm -rf "$_outdir"/lib/firmware
install -D -m644 include/config/kernel.release \
"$_outdir"/usr/share/kernel/$_buildflavor/kernel.release
"$_outdir"/usr/share/kernel/$_flavor/kernel.release
if [ "$CARCH" = "aarch64" ]; then
mv -f "$INSTALL_DTBS_PATH"/broadcom/*.dtb \