diff options
author | Kevin Daudt <kdaudt@alpinelinux.org> | 2024-03-14 19:21:56 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2024-03-16 16:56:09 +0000 |
commit | 2db0d1a77a58fb93e1f64a9de37d6bf94d85f216 (patch) | |
tree | dfecad8d90cf4aa1d4b5ec0be331cbfd9b62e628 | |
parent | 6e0bdb63a6c39646cde02b25a286d1173b84ed9a (diff) | |
download | aports-2db0d1a77a58fb93e1f64a9de37d6bf94d85f216.zip |
community/linux-edge: use tabs consistently
-rw-r--r-- | community/linux-edge/APKBUILD | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/community/linux-edge/APKBUILD b/community/linux-edge/APKBUILD index 49cf4bae1bd..6eb21833d3f 100644 --- a/community/linux-edge/APKBUILD +++ b/community/linux-edge/APKBUILD @@ -183,74 +183,74 @@ _dev() { echo "-$pkgrel-$_flavor" > "$dir"/localversion-alpine cd $builddir - echo "Installing headers..." + echo "Installing headers..." case "$_carch" in x86_64) _carch="x86" install -Dt "${dir}/tools/objtool" $builddir/tools/objtool/objtool ;; esac - cp -t "$dir" -a $builddir/include + cp -t "$dir" -a $builddir/include - install -Dt "${dir}" -m644 $builddir/Makefile - install -Dt "${dir}" -m644 $builddir/Module.symvers - install -Dt "${dir}" -m644 $builddir/System.map + install -Dt "${dir}" -m644 $builddir/Makefile + install -Dt "${dir}" -m644 $builddir/Module.symvers + install -Dt "${dir}" -m644 $builddir/System.map cp -t "$dir" -a $builddir/scripts - install -Dt "${dir}/arch/${_carch}" -m644 $builddir/arch/${_carch}/Makefile - install -Dt "${dir}/arch/${_carch}/kernel" -m644 $builddir/arch/${_carch}/kernel/asm-offsets.s - cp -t "${dir}/arch/${_carch}" -a $builddir/arch/${_carch}/include + install -Dt "${dir}/arch/${_carch}" -m644 $builddir/arch/${_carch}/Makefile + install -Dt "${dir}/arch/${_carch}/kernel" -m644 $builddir/arch/${_carch}/kernel/asm-offsets.s + cp -t "${dir}/arch/${_carch}" -a $builddir/arch/${_carch}/include - install -Dt "$dir/drivers/md" -m644 drivers/md/*.h - install -Dt "$dir/net/mac80211" -m644 net/mac80211/*.h + install -Dt "$dir/drivers/md" -m644 drivers/md/*.h + install -Dt "$dir/net/mac80211" -m644 net/mac80211/*.h - # https://bugs.archlinux.org/task/13146 - install -Dt "$dir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h + # https://bugs.archlinux.org/task/13146 + install -Dt "$dir/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h - # https://bugs.archlinux.org/task/20402 - install -Dt "$dir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h - install -Dt "$dir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h - install -Dt "$dir/drivers/media/tuners" -m644 drivers/media/tuners/*.h + # https://bugs.archlinux.org/task/20402 + install -Dt "$dir/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h + install -Dt "$dir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h + install -Dt "$dir/drivers/media/tuners" -m644 drivers/media/tuners/*.h - # https://bugs.archlinux.org/task/71392 - install -Dt "$dir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h + # https://bugs.archlinux.org/task/71392 + install -Dt "$dir/drivers/iio/common/hid-sensors" -m644 drivers/iio/common/hid-sensors/*.h - echo "Installing KConfig files..." - find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \; + echo "Installing KConfig files..." + find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \; - echo "Removing unneeded architectures..." - local arch - for arch in "$dir"/arch/*/; do + echo "Removing unneeded architectures..." + local arch + for arch in "$dir"/arch/*/; do case $(basename "$arch") in $_carch) continue ;; esac - echo "Removing $(basename "$arch")" - rm -r "$arch" - done - - echo "Removing broken symlinks..." - find -L "$builddir" -type l -printf 'Removing %P\n' -delete - - echo "Removing loose objects..." - find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete - - echo "Stripping build tools..." - local file - while read -rd '' file; do - case "$(file -bi "$file")" in - application/x-sharedlib\;*) # Libraries (.so) - strip -v $STRIP_SHARED "$file" ;; - application/x-archive\;*) # Libraries (.a) - strip -v $STRIP_STATIC "$file" ;; - application/x-executable\;*) # Binaries - strip -v $STRIP_BINARIES "$file" ;; - application/x-pie-executable\;*) # Relocatable binaries - strip -v $STRIP_SHARED "$file" ;; - esac - done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0) - - echo "Stripping vmlinux..." - strip -v $STRIP_STATIC "$builddir/vmlinux" - - echo "Adding symlink..." + echo "Removing $(basename "$arch")" + rm -r "$arch" + done + + echo "Removing broken symlinks..." + find -L "$builddir" -type l -printf 'Removing %P\n' -delete + + echo "Removing loose objects..." + find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete + + echo "Stripping build tools..." + local file + while read -rd '' file; do + case "$(file -bi "$file")" in + application/x-sharedlib\;*) # Libraries (.so) + strip -v $STRIP_SHARED "$file" ;; + application/x-archive\;*) # Libraries (.a) + strip -v $STRIP_STATIC "$file" ;; + application/x-executable\;*) # Binaries + strip -v $STRIP_BINARIES "$file" ;; + application/x-pie-executable\;*) # Relocatable binaries + strip -v $STRIP_SHARED "$file" ;; + esac + done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0) + + echo "Stripping vmlinux..." + strip -v $STRIP_STATIC "$builddir/vmlinux" + + echo "Adding symlink..." mkdir -p "$subpkgdir"/lib/modules/${_abi_release} ln -sf /usr/src/linux-headers-${_abi_release} \ "$subpkgdir"/lib/modules/${_abi_release}/build |