Fix conflict with mkbootimg and android-tools (#1557)
Alpine ships `mkbootimg` with the `android-tools` package now. This conflicts with the `mkbootimg` fork from osm0sis (see #441). Changes: * Rename `mkbootimg` to `mkbootimg-osm0sis` (aport and binary name) * `mkbootimg-osm0sis`: provides `mkbootimg` now (so we don't need to change all the device aports), update version to 2018.05.10 * Adjust our `mkinitfs` script to call `mkbootimg-osm0sis` * Better aport description * pkgrel_bump testcase: don't fail on deleted aport
This commit is contained in:
parent
9acbdf3175
commit
0921c2eaf1
4 changed files with 30 additions and 28 deletions
26
main/mkbootimg-osm0sis/APKBUILD
Normal file
26
main/mkbootimg-osm0sis/APKBUILD
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
pkgname=mkbootimg-osm0sis
|
||||||
|
pkgver=2018.05.10
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Android bootimg tools (maintained fork of the C version, see #441)"
|
||||||
|
url="https://github.com/osm0sis/mkbootimg"
|
||||||
|
arch="all"
|
||||||
|
license="APACHE2"
|
||||||
|
depends=""
|
||||||
|
provides="mkbootimg=$pkgver unpackbootimg=$pkgver"
|
||||||
|
replaces="mkbootimg"
|
||||||
|
subpackages=""
|
||||||
|
source="$pkgname-$pkgver.tar.gz::https://github.com/osm0sis/mkbootimg/archive/$pkgver.tar.gz"
|
||||||
|
options="!check"
|
||||||
|
builddir="$srcdir/mkbootimg-$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$builddir"
|
||||||
|
make -j1
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 "$builddir/mkbootimg" "${pkgdir}/usr/bin/mkbootimg-osm0sis"
|
||||||
|
install -Dm755 "$builddir/unpackbootimg" "${pkgdir}/usr/bin/unpackbootimg"
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="2f375b104f6a976c0e395afd4654f3d25aa3d786969150b342fa1020ef82dce6402cb9cc977c0ecbd421213eecaeedfce98ef1fc7d9105579ffee1e0d29becd6 mkbootimg-osm0sis-2018.05.10.tar.gz"
|
|
@ -1,24 +0,0 @@
|
||||||
pkgname=mkbootimg
|
|
||||||
pkgver=2017.12.13
|
|
||||||
pkgrel=0
|
|
||||||
pkgdesc="Android bootimg creation tool"
|
|
||||||
url="https://github.com/osm0sis/mkbootimg"
|
|
||||||
arch="all"
|
|
||||||
license="APACHE2"
|
|
||||||
depends=""
|
|
||||||
provides="unpackbootimg"
|
|
||||||
subpackages=""
|
|
||||||
source="$pkgname.tar.gz::https://github.com/osm0sis/$pkgname/archive/$pkgver.tar.gz"
|
|
||||||
options="!check"
|
|
||||||
workdir="$pkgname-$pkgver"
|
|
||||||
|
|
||||||
build() {
|
|
||||||
make -j1
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
install -Dm755 "$srcdir/$workdir/mkbootimg" "${pkgdir}/usr/bin/mkbootimg"
|
|
||||||
install -Dm755 "$srcdir/$workdir/unpackbootimg" "${pkgdir}/usr/bin/unpackbootimg"
|
|
||||||
}
|
|
||||||
|
|
||||||
sha512sums="39820ee581f007b6e7c69f83ae6d54e99d32869604d1a960421c0c588fa55917f686104782b1e5ff5cb586f7efb19e9b9db11e69031cbb5e22462ab9d39cdc20 mkbootimg.tar.gz"
|
|
|
@ -1,5 +1,5 @@
|
||||||
pkgname=postmarketos-mkinitfs
|
pkgname=postmarketos-mkinitfs
|
||||||
pkgver=0.6.5
|
pkgver=0.6.6
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
||||||
url="https://github.com/postmarketOS"
|
url="https://github.com/postmarketOS"
|
||||||
|
@ -25,4 +25,4 @@ package() {
|
||||||
}
|
}
|
||||||
sha512sums="d5abfe9a1298069e6722555c6e16223b09b36af65d879feb64d540aa6cbc009a3aa7f00528bcf656370ec37cc64f925c72ebb77813961cd6ebf22107b57ea029 init.sh.in
|
sha512sums="d5abfe9a1298069e6722555c6e16223b09b36af65d879feb64d540aa6cbc009a3aa7f00528bcf656370ec37cc64f925c72ebb77813961cd6ebf22107b57ea029 init.sh.in
|
||||||
1e39c077932ac3e1f068c1c438b22339b6d705f1358897fe738e64e2280e36346b6a65f0e50996e9a99b182c617d96995adc9263643afa5f46b4b93857fe73d6 init_functions.sh
|
1e39c077932ac3e1f068c1c438b22339b6d705f1358897fe738e64e2280e36346b6a65f0e50996e9a99b182c617d96995adc9263643afa5f46b4b93857fe73d6 init_functions.sh
|
||||||
631007eb45fb2ec79532f746cda9d2f98e3d0853c0b0bdaed82e8f931fe3ddf9127274f200726fab8d3e41dbe0dfbab2c3ad359584218b04c2b07ef54f8b332b mkinitfs.sh"
|
3ecdf70c61fa862990b3afbec872f0498e0246017502aa22106782f8c5ef361902ad05473d6c2121db359f4f1d7e7a83da322e0d9f243825c4d1144358447164 mkinitfs.sh"
|
||||||
|
|
|
@ -232,7 +232,7 @@ create_uboot_files()
|
||||||
create_bootimg()
|
create_bootimg()
|
||||||
{
|
{
|
||||||
[ "${deviceinfo_generate_bootimg}" == "true" ] || return
|
[ "${deviceinfo_generate_bootimg}" == "true" ] || return
|
||||||
require_package "mkbootimg" "mkbootimg" "generate_bootimg"
|
require_package "mkbootimg-osm0sis" "mkbootimg" "generate_bootimg"
|
||||||
|
|
||||||
echo "==> initramfs: creating boot.img"
|
echo "==> initramfs: creating boot.img"
|
||||||
_base="${deviceinfo_flash_offset_base}"
|
_base="${deviceinfo_flash_offset_base}"
|
||||||
|
@ -256,7 +256,7 @@ create_bootimg()
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
mkbootimg \
|
mkbootimg-osm0sis \
|
||||||
--kernel "${kernelfile}" \
|
--kernel "${kernelfile}" \
|
||||||
--ramdisk "$outfile" \
|
--ramdisk "$outfile" \
|
||||||
--base "${_base}" \
|
--base "${_base}" \
|
||||||
|
|
Loading…
Reference in a new issue