deviceinfo: add blobtools options (#1118)

Add a blobtools option to the deviceinfo file for creating specific
blobs for the Asus TF101 tablet. This will make it easier to flash
afterwards with ADB.
This commit is contained in:
rrooij 2018-01-13 21:38:29 +01:00 committed by Oliver Smith
parent 71d21a20c8
commit 7b6733f707
4 changed files with 10 additions and 5 deletions

View File

@ -1,13 +1,13 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-asus-tf101"
pkgdesc="Asus Eee Pad Transformer"
pkgver=0.1
pkgver=0.2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-asus-tf101 mkbootimg"
depends="linux-asus-tf101 mkbootimg blobtools"
makedepends="devicepkg-dev"
source="deviceinfo"
@ -19,4 +19,4 @@ package() {
devicepkg_package $startdir $pkgname
}
sha512sums="707e1540c3f124a374f3b7b25cbf7a5e2b929fc1ed0e0570db92fb6c42c071acb4609762cb90e197a1266159325a016d35ed4007fb8ec51b2d9ce88c3b9e8794 deviceinfo"
sha512sums="01faa12789038e46e33adc3073c26e6dfb31c9da5a45eccc4da6a39da9db15afdd4f701c31a69d21747a6290c1a48e33befdc6867a7f2a68fc4500d59befc1c3 deviceinfo"

View File

@ -25,6 +25,7 @@ deviceinfo_flash_method="adb"
deviceinfo_kernel_cmdline="nvmem=128M@384M mem=1024M@0M vmalloc=128M gpt video=tegrafb console=tty0 usbcore.oldscheme_first=1 lp0_vec=8192@0x1fbed000 root=/dev/mmcblk0p7 ro quiet splash"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_blobpack="true"
deviceinfo_flash_offset_base="0x10000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"

View File

@ -1,5 +1,5 @@
pkgname=postmarketos-mkinitfs
pkgver=0.5.7
pkgver=0.5.8
pkgrel=0
pkgdesc="Tool to generate initramfs images for postmarketOS"
url="https://github.com/postmarketOS"
@ -24,4 +24,4 @@ package() {
}
sha512sums="500c1e903ca9cf5dfe0102414b086643379d51d848e15eeed89da8ba9f3a286dfba139a29b8312a0df005e159a54ad08c84e078b7d70e6873cabb7d0abda4807 init.sh.in
eca1e4647494556be52b3eecffe2db75735006a6c53e8778630949808aabc464281ffa75a8744e22a5512c2de1eb5f92f9eb377a55ca4a7402ba8cc0705df83d init_functions.sh
5bb521186c5f6586136ab3edb13d2ba44c00a84e9d18f255f5e92305bf78ff5aa9bd414d7a50eda4168e5c6eadd87d62fd4169f370fd18e0ebd291fcf2103a9f mkinitfs.sh"
77adbdc13ed562999ac02a194b2b5237f29704d3c39afa7e27c34f739c701c272a284e9a18d403bb01d02fa5123f006168f21378746a2a5a2d860f9345e51b70 mkinitfs.sh"

View File

@ -213,6 +213,10 @@ create_bootimg()
--pagesize "${deviceinfo_flash_pagesize}" \
${_dt} \
-o "${outfile/initramfs-/boot.img-}"
if [ "${deviceinfo_bootimg_blobpack}" == "true" ]; then
echo "==> initramfs: creating blob"
blobpack "${outfile/initramfs-/blob-}" LNX "${outfile/initramfs-/boot.img-}"
fi
}
# Create splash screens