device/linux-*: various custom linter fixes (!1007)

This commit is contained in:
Minecrell 2020-02-28 11:17:04 +01:00
parent fde2a02e8a
commit ea583fc601
No known key found for this signature in database
GPG key ID: 699D16185DAFAE61
31 changed files with 42 additions and 63 deletions

View file

@ -49,7 +49,7 @@ build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
dtbTool -s 2048 -p "scripts/dtc/" -o "arch/arm/boot/dt.img" "arch/arm/boot/" --version=1
}

View file

@ -56,7 +56,6 @@ package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
# Modules
cd "$builddir"
unset LDFLAGS
make modules_install \
ARCH="$_carch" \

View file

@ -48,12 +48,12 @@ package() {
}
dev() {
cd $builddir
cd "$builddir"
# https://github.com/torvalds/linux/blob/master/Documentation/kbuild/headers_install.txt
make -j1 headers_install \
ARCH="$_carch" \
INSTALL_HDR_PATH="$subpkgdir"/usr
# https://github.com/torvalds/linux/blob/master/Documentation/kbuild/headers_install.txt
make -j1 headers_install \
ARCH="$_carch" \
INSTALL_HDR_PATH="$subpkgdir"/usr
}
sha512sums="8d84560e22a6473653efa1dc229c8f8c4f95da8c2f61050583bb1285efa774c958fb13da1cf83a4f9c2cd2e73f2075569da346fa64399ccd058e793754da066a linux-chuwi-hi10plus-5.1.7.tar.gz

View file

@ -27,7 +27,7 @@ _repository="linux"
_commit="9c9b87cec239101274451cc9c086da60108f9fda"
source="
$pkgname-$_commit.tar.gz::https://github.com/Pixel3Dev/$_repository/archive/$_commit.tar.gz
$pkgname-$_commit.tar.gz::https://github.com/Pixel3Dev/$_repository/archive/$_commit.tar.gz
config-$_flavor.aarch64
"
@ -47,7 +47,6 @@ builddir="$srcdir/linux-$_commit"
prepare() {
local _patch_failed=
cd "$builddir"
# first apply patches in specified order
for i in $source; do
case $i in

View file

@ -41,7 +41,7 @@ build() {
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
CFLAGS_MODULE=-fno-pic modules
CFLAGS_MODULE=-fno-pic modules
}
package() {

View file

@ -73,7 +73,6 @@ package() {
"$pkgdir/boot/dt.img"
# Modules
cd "$builddir"
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
CONFIG_NO_ERROR_ON_MISMATCH=y \

View file

@ -50,7 +50,6 @@ build() {
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
-C $builddir/arch/arm/mach-sun6i/pm/standby
cd $builddir
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
@ -59,7 +58,6 @@ package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
# External modules install
cd "$builddir"
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
INSTALL_MOD_PATH="$pkgdir" modules_install

View file

@ -74,7 +74,7 @@ prepare() {
cp -v "$srcdir/compiler-gcc6.h" "$ksrcdir/include/linux/"
mkdir -p "$srcdir"/build
cp "$srcdir"/$_config "$srcdir"/build/.config || return 1
cp "$srcdir"/$_config "$srcdir"/build/.config
echo "--[ silentoldconfig ]--"
yes "" | make -C "$ksrcdir" O="$srcdir"/build ARCH="$_carch" HOSTCC="$HOSTCC" \
oldconfig
@ -84,12 +84,11 @@ build() {
cd "$srcdir"/build
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \
|| return 1
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y
echo "--[ Build modules ]--"
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \
modules || return 1
modules
}
package() {
@ -104,8 +103,7 @@ package() {
echo "--[ Installing modules ]--"
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" CONFIG_NO_ERROR_ON_MISMATCH=y \
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 modules_install \
|| return 1
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 modules_install
}
sha512sums="d201e20557edea08947f10be1465560d292522f07099e2f8927164766da57e4f8a2c3fcd3e3ed427e856a86afe4fb3a4233753e19d4b7cb96b8258c6355be9f0 linux-lg-d285-75a583b12772acf3a6e7422cf781ddd7a9e9a5c5.tar.gz

View file

@ -54,7 +54,6 @@ package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
# Modules
cd "$builddir"
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \

View file

@ -56,7 +56,6 @@ prepare() {
}
build() {
cd "$builddir"
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
@ -77,7 +76,6 @@ build() {
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
cd "$builddir"
make modules_install \
ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \

View file

@ -18,7 +18,7 @@ _repository="android_kernel_motorola_msm8937"
_commit="1e8993177823e4ddf3b5d91da6335d75ad513dec"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/MontanaDevelopment/$_repository/archive/$_commit.tar.gz
$pkgname-$_commit.tar.gz::https://github.com/MontanaDevelopment/$_repository/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"

View file

@ -105,11 +105,11 @@ package() {
install -Dm644 "$builddir/arch/arm/boot/dt.img" \
"$pkgdir/boot/dt.img"
cd "$srcdir"/build
cd "$srcdir"/build
make -j1 modules_install \
ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir"
make -j1 modules_install \
ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir"
}
sha512sums="fbc2e1fa6ff33dd4c20bb063c655fe85ee20c194a9c19a5fadd3434b8ade4b95377848349ce9266d74ca34882446e1e257c0e1a3e35bd23ff05813918dc74750 linux-motorola-osprey-ac87541051278c7ea7f494c0b689d08e4a5cdd4f.tar.gz

View file

@ -15,9 +15,9 @@ makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev d
# Compiler: GCC 6 (doesn't compile with newer versions)
if [ "${CC:0:5}" != "gcc6-" ]; then
CC="gcc6-$CC"
HOSTCC="gcc6-gcc"
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
CC="gcc6-$CC"
HOSTCC="gcc6-gcc"
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
fi
# Source

View file

@ -1,7 +1,6 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/FRT_defconfig
maintainer="Piotr Halama <skrzynka@halamix2.pl>"
# Maintainer: Piotr Halama <skrzynka@halamix2.pl>
pkgname="linux-nokia-frt"
pkgver=3.18.79
pkgrel=1
@ -45,7 +44,6 @@ package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
# Modules
cd "$builddir"
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \

View file

@ -73,7 +73,7 @@ prepare() {
cp "$srcdir/RM-696_Pyrenees_SMD_V1_6.raw" "$ksrcdir/firmware/maxtouch.cfg"
mkdir -p "$srcdir"/build
cp "$srcdir"/$_config "$srcdir"/build/.config || return 1
cp "$srcdir"/$_config "$srcdir"/build/.config
make -C "$ksrcdir" O="$srcdir"/build ARCH="$_carch" \
olddefconfig
}
@ -82,8 +82,7 @@ build() {
cd "$srcdir"/build
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" \
|| return 1
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine"
cd $ksrcdir
}

View file

@ -2,7 +2,7 @@
# - add !check !tracedeps
# - do not create -dev subpackage
# - add 'xz' and 'dtbtool' as build dependencies
# - add `dtbTool` build hook to generate separate 'dt.img'
# - add 'dtbTool' build hook to generate separate 'dt.img'
#
# Kernel config based on: arch/arm/configs/lineageos_bacon_defconfig
# Changes:

View file

@ -63,8 +63,7 @@ package() {
# Master DTB (deviceinfo_bootimg_qcdt)
install -Dm644 "$builddir/arch/arm/boot/dt.img" \
"$pkgdir/boot/dt.img"
cd "$builddir"
make -j1 modules_install ARCH="$_carch" INSTALL_MOD_PATH="$pkgdir"
}
@ -72,15 +71,16 @@ dev() {
pkgdesc="Headers and script for third party modules for $pkgname kernel"
depends="gmp-dev bash perl"
cd "$builddir"
local dir="$subpkgdir"/usr/src/linux-headers-$_abi_release
mkdir -p "$dir"
make -j1 headers_install ARCH="$_carch" INSTALL_HDR_PATH="$dir"
mkdir -p "$subpkgdir"/lib/modules/$_abi_release
install -Dm644 "$builddir"/Module.symvers \
"$subpkgdir"/lib/modules/$_abi_release/Module.symvers
ln -sf /usr/src/linux-headers-$_abi_release \
"$subpkgdir"/lib/modules/$_abi_release/build
}

View file

@ -21,7 +21,7 @@ _commit="1309cc0a813e70af9b3d8c29d513e78715475de5"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://source.puri.sm/Librem5/$_repository/-/archive/$_commit.tar.gz
0001-force-host-mode-for-usb.patch
0001-force-host-mode-for-usb.patch
$_config
"
builddir="$srcdir/$_repository-$_commit"

View file

@ -36,7 +36,7 @@ build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
make ARCH="$_carch" CC="${CC:-gcc}" CFLAGS_MODULE="-fno-pic" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" modules
}
@ -44,7 +44,6 @@ build() {
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
cd "$builddir"
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" INSTALL_MOD_PATH="$pkgdir" \
modules_install

View file

@ -53,7 +53,6 @@ package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
# Modules
cd "$builddir"
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \

View file

@ -49,12 +49,13 @@ prepare_isorec() {
# Paths supplied to gen_initramfs_list.sh are prefixed with "source/".
ln -s "$builddir" ln -s "$builddir"/source
cd "$builddir"
}
prepare() {
default_prepare
prepare_isorec
cd "$builddir"
downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
}

View file

@ -67,7 +67,6 @@ package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
# Modules
cd "$builddir"
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \

View file

@ -45,13 +45,14 @@ prepare_isorec() {
# Paths supplied to gen_initramfs_list.sh are prefixed with "source/".
ln -s "$builddir" ln -s "$builddir"/source
cd "$builddir"
}
prepare() {
default_prepare
prepare_isorec
cd "$builddir"
downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
}

View file

@ -68,7 +68,6 @@ package() {
"$pkgdir/boot/dt.img"
# External modules install
cd "$builddir"
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
INSTALL_MOD_PATH="$pkgdir" modules_install

View file

@ -57,7 +57,6 @@ package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
# Modules
cd "$builddir"
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \

View file

@ -27,7 +27,7 @@ _repository="linux"
_commit="ad6ab7f8c57896cb3829e6a80408e0912d6096c2"
source="
$pkgname-$_commit.tar.gz::https://github.com/konradybcio/$_repository/archive/$_commit.tar.gz
$pkgname-$_commit.tar.gz::https://github.com/konradybcio/$_repository/archive/$_commit.tar.gz
config-$_flavor.armv7
"
@ -45,7 +45,6 @@ builddir="$srcdir/linux-$_commit"
prepare() {
local _patch_failed=
cd "$builddir"
# first apply patches in specified order
for i in $source; do
case $i in

View file

@ -49,7 +49,7 @@ build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
CONFIG_NO_ERROR_ON_MISMATCH=y
CONFIG_NO_ERROR_ON_MISMATCH=y
# Generate master DTB (deviceinfo_bootimg_qcdt)
dtbTool -s 2048 -p "scripts/dtc/" -o "arch/arm/boot/dt.img" "arch/arm/boot/"

View file

@ -60,12 +60,9 @@ package() {
"$pkgdir/boot/dt.img"
# External modules install
cd "$builddir"
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
INSTALL_MOD_PATH="$pkgdir" modules_install \
|| return 1
INSTALL_MOD_PATH="$pkgdir" modules_install
}
sha512sums="360bf588a670cb7cd67b431c0f7cddb622d0364b3c5a0f0b9b6dd63d8b5dd7d365d6e075a1ce0652d13ce6a9d26cfb85d7b68eeb506d8e8e22aa667f57cdf0b2 linux-xiaomi-armani-0d17d5761449b14f31d00044e95753f3a6ad23b2.tar.gz

View file

@ -42,10 +42,10 @@ build() {
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
msg "Combine DTB and Image.gz"
msg "(Because QCOM's custom Makefile builds into the wrong direcotry)"
cat "$builddir/arch/$_carch/boot/Image.gz" \
"$builddir/arch/arm/boot/dts/kenzo-msm8956-mtp.dtb" \
> "$builddir/arch/$_carch/boot/Image.gz-dtb"
msg "(Because QCOM's custom Makefile builds into the wrong direcotry)"
cat "$builddir/arch/$_carch/boot/Image.gz" \
"$builddir/arch/arm/boot/dts/kenzo-msm8956-mtp.dtb" \
> "$builddir/arch/$_carch/boot/Image.gz-dtb"
}
package() {

View file

@ -1,6 +1,6 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/lineageos_tomato_defconfig
# Maintainer: xeon zolt <xeon.harsh@gmail.com>
# Maintainer: xeon zolt <xeon.harsh@gmail.com>
pkgname="linux-yu-tomato"
pkgver=3.10.108

View file

@ -53,7 +53,6 @@ package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
# Modules
cd "$builddir"
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \