main/lk2nd: armv7 only on msm8226 and msm8974 (MR 3936)
msm8226 and msm8974 are both arm32 SoCs. Set the architecture to armv7 only. Fixes #1900 [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
ddce692f08
commit
1fc99009af
1 changed files with 12 additions and 5 deletions
|
@ -17,13 +17,18 @@ options="!check !archcheck !tracedeps !strip pmb:cross-native"
|
|||
# * stripping of unused sections is done in lk2nd's own ld script.
|
||||
|
||||
subpackages="
|
||||
$pkgname-msm8226
|
||||
$pkgname-msm8226-appended:msm8226_appended
|
||||
$pkgname-msm8916
|
||||
$pkgname-msm8916-appended:msm8916_appended
|
||||
$pkgname-msm8974
|
||||
"
|
||||
|
||||
if [ "$CARCH" = "armv7" ]; then
|
||||
subpackages="
|
||||
$subpackages
|
||||
$pkgname-msm8226
|
||||
$pkgname-msm8226-appended:msm8226_appended
|
||||
$pkgname-msm8974"
|
||||
fi
|
||||
|
||||
build() {
|
||||
# This builds baremetal executable; distro-specific compiler flags
|
||||
# and optimizations can't be set by build system.
|
||||
|
@ -41,8 +46,10 @@ build() {
|
|||
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
make LK2ND_VERSION="$pkgver-r$pkgrel-postmarketos" TOOLCHAIN_PREFIX=arm-none-eabi- lk2nd-msm8916
|
||||
make LK2ND_VERSION="$pkgver-r$pkgrel-postmarketos" TOOLCHAIN_PREFIX=arm-none-eabi- lk2nd-msm8974
|
||||
make LK2ND_VERSION="$pkgver-r$pkgrel-postmarketos" TOOLCHAIN_PREFIX=arm-none-eabi- lk2nd-msm8226
|
||||
if [ "$CARCH" = "armv7" ]; then
|
||||
make LK2ND_VERSION="$pkgver-r$pkgrel-postmarketos" TOOLCHAIN_PREFIX=arm-none-eabi- lk2nd-msm8974
|
||||
make LK2ND_VERSION="$pkgver-r$pkgrel-postmarketos" TOOLCHAIN_PREFIX=arm-none-eabi- lk2nd-msm8226
|
||||
fi
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
Loading…
Reference in a new issue