Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/linux-odroid-xu3: Add conflicts/replaces for linux-odroid-n2 #2046

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions core/linux-odroid-xu3/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pkgbase=linux-odroid-xu3
_commit=30c3784c60265b33a78b7c369fe6f25d2525fb4b
_srcname=linux-${_commit}
_kernelname=${pkgbase#linux}
_desc="ODROID-XU3/XU4/HC1, odroid-6.6.y branch"
_desc="ODROID-XU3/XU4/HC1/C4/N2, odroid-6.6.y branch"
pkgver=6.6.40
pkgrel=1
arch=('armv7h')
Expand Down Expand Up @@ -48,7 +48,8 @@ _package() {
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
optdepends=('wireless-regdb: to set the correct wireless channels of your country')
provides=("linux=${pkgver}" "WIREGUARD-MODULE")
conflicts=('linux')
conflicts=('linux' 'linux-odroid-n2')
replaces=('linux-odroid-n2')
backup=("etc/mkinitcpio.d/${pkgbase}.preset")
install=${pkgname}.install

Expand Down Expand Up @@ -85,7 +86,8 @@ _package() {
_package-headers() {
pkgdesc="Header files and scripts for building modules for linux kernel - ${_desc}"
provides=("linux-headers=${pkgver}")
conflicts=('linux-headers')
conflicts=('linux-headers' 'linux-odroid-n2-headers')
replaces=('linux-odroid-n2-headers')

cd $_srcname
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
Expand Down