diff options
author | Björn Bidar | 2022-07-02 05:04:56 +0300 |
---|---|---|
committer | Björn Bidar | 2022-07-02 05:12:49 +0300 |
commit | e0896157da45f8d2e80f19e396607ece9c0001fb (patch) | |
tree | aef56937a06f1acdd9ae593e6597248e894ba0b1 | |
parent | e4896888137548d5ce479c6f3fac5f96a70ea14b (diff) | |
download | aur-e0896157da45f8d2e80f19e396607ece9c0001fb.tar.gz |
Update to 5.18.6.p2-3
- Rename generic package to -generic
- Set kernel config CONFIG_$CPU for generic variants properly. Fixes #7
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -519,12 +519,15 @@ build() { if [[ "$LCPU" ]] ; then case $LCPU in *generic*) LCPU=${LCPU/generic-v/generic_cpu} ;; + generic) : ;; *) LCPU=m${LCPU} ;; esac - CPU=${LCPU^^} - sed -e "s|# CONFIG_M$CPU is not set|CONFIG_M$CPU=y|" \ - -e '/CONFIG_GENERIC_CPU=y/d' \ - -i "$srcdir/linux-${_basekernel}/.config" + if [ ! $LCPU = "generic" ] ; then + CPU=${LCPU^^} + sed -e "s|# CONFIG_$CPU is not set|CONFIG_$CPU=y|" \ + -e '/CONFIG_GENERIC_CPU=y/d' \ + -i "$srcdir/linux-${_basekernel}/.config" + fi export _PKGOPT=y fi @@ -820,19 +823,15 @@ _set_variant_appendix() pkgname="${_pkg}-generic-v4" pkgdesc="${pkgdesc} Generic-x86-64-v4 optimized." ;; - *) - # Workaround against mksrcinfo getting the $pkdesc wrong - pkgname="${_pkg}" + *|generic) + pkgname="${_pkg}-generic" pkgdesc="${pkgdesc}" ;; esac + conflicts=("$_pkg") + provides+=(${_pkg}=$pkgver) - if [[ "$pkgname" != "${_pkg}" ]]; then - # If optimized build, conflict with generic - conflicts=("$_pkg") - provides+=(${_pkg}=$pkgver) - fi fi echo @@ -865,6 +864,12 @@ _package() { _set_variant_appendix "${pkgbase}" + case "$pkgname" in + *generic) + replaces=('<linux-pf=5.18.6.pf2-2') + ;; + esac + ### package_linux-pf ### c/p from linux-ARCH |