mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
core/linux-aarch64-rc to 4.14.rc2-1
This commit is contained in:
parent
f04662b1c7
commit
dbd107e9ba
6 changed files with 96 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
|||
buildarch=8
|
||||
|
||||
_rcver=4.14
|
||||
_rcrel=1
|
||||
_rcrel=2
|
||||
|
||||
pkgbase=linux-aarch64-rc
|
||||
_srcname=linux-${_rcver}-rc${_rcrel}
|
||||
|
@ -15,20 +15,26 @@ pkgrel=1
|
|||
arch=('aarch64')
|
||||
url="http://www.kernel.org/"
|
||||
license=('GPL2')
|
||||
makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git')
|
||||
makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git' 'uboot-tools' 'vboot-utils' 'dtc')
|
||||
options=('!strip')
|
||||
source=("https://git.kernel.org/torvalds/t/${_srcname}.tar.gz"
|
||||
'0001-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch'
|
||||
'0002-arm64-dts-rockchip-disable-pwm0-on-rk3399-firefly.patch'
|
||||
'0003-arm64-dts-rockchip-enable-display-subsystem-on-rk339.patch'
|
||||
'config'
|
||||
'kernel.its'
|
||||
'kernel.keyblock'
|
||||
'kernel_data_key.vbprivk'
|
||||
'linux.preset'
|
||||
'99-linux.hook')
|
||||
md5sums=('d6ad0821d00e96a84975061a7dca993b'
|
||||
md5sums=('f795ac9a3dc666344cd1502b40d6545f'
|
||||
'7202a91360452d28591525fa08d20fa0'
|
||||
'28954404cdc8766aa0d986467904287c'
|
||||
'3580cb7661a2145a43ffa514bcafc1d8'
|
||||
'1ca9f652c39fd65024cb8b47c808cb9b'
|
||||
'11a4f35c50f0bde59c30182aa7b797b7'
|
||||
'61c5ff73c136ed07a7aadbf58db3d96a'
|
||||
'584777ae88bce2c5659960151b64c7d8'
|
||||
'25d8f6983c9a616946848c0e075a949c'
|
||||
'1d4477026533efaa0358a40855d50a83')
|
||||
|
||||
|
@ -252,7 +258,33 @@ _package-headers() {
|
|||
rm -rf "${pkgdir}"/usr/lib/modules/${_kernver}/build/arch/{alpha,arc,arm,arm26,avr32,blackfin,c6x,cris,frv,h8300,hexagon,ia64,m32r,m68k,m68knommu,metag,mips,microblaze,mn10300,openrisc,parisc,powerpc,ppc,s390,score,sh,sh64,sparc,sparc64,tile,unicore32,um,v850,x86,xtensa}
|
||||
}
|
||||
|
||||
pkgname=("${pkgbase}" "${pkgbase}-headers")
|
||||
_package-chromebook() {
|
||||
pkgdesc="The Linux Kernel - ${_desc} - Chromebooks"
|
||||
depends=('linux-aarch64-rc')
|
||||
install=${pkgname}.install
|
||||
|
||||
cd "${srcdir}/${_srcname}"
|
||||
|
||||
mkdir -p "${pkgdir}/boot"
|
||||
cp ../kernel.its .
|
||||
|
||||
mkimage -D "-I dts -O dtb -p 2048" -f kernel.its vmlinux.uimg
|
||||
dd if=/dev/zero of=bootloader.bin bs=512 count=1
|
||||
echo "console=tty0 console=ttyS2,115200n8 earlyprintk=ttyS2,115200n8 init=/sbin/init root=PARTUUID=%U/PARTNROFF=1 rootwait rw noinitrd" > cmdline
|
||||
vbutil_kernel \
|
||||
--pack vmlinux.kpart \
|
||||
--version 1 \
|
||||
--vmlinuz vmlinux.uimg \
|
||||
--arch aarch64 \
|
||||
--keyblock ../kernel.keyblock \
|
||||
--signprivate ../kernel_data_key.vbprivk \
|
||||
--config cmdline \
|
||||
--bootloader bootloader.bin
|
||||
|
||||
cp vmlinux.kpart "${pkgdir}/boot"
|
||||
}
|
||||
|
||||
pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-chromebook")
|
||||
for _p in ${pkgname[@]}; do
|
||||
eval "package_${_p}() {
|
||||
_package${_p#${pkgbase}}
|
||||
|
|
34
core/linux-aarch64-rc/kernel.its
Normal file
34
core/linux-aarch64-rc/kernel.its
Normal file
|
@ -0,0 +1,34 @@
|
|||
/dts-v1/;
|
||||
|
||||
/ {
|
||||
description = "Chrome OS kernel image with one or more FDT blobs";
|
||||
images {
|
||||
kernel@1{
|
||||
description = "kernel";
|
||||
data = /incbin/("arch/arm64/boot/Image");
|
||||
type = "kernel_noload";
|
||||
arch = "arm64";
|
||||
os = "linux";
|
||||
compression = "none";
|
||||
load = <0>;
|
||||
entry = <0>;
|
||||
};
|
||||
fdt@1{
|
||||
description = "rk3399-gru-kevin.dtb";
|
||||
data = /incbin/("arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dtb");
|
||||
type = "flat_dt";
|
||||
arch = "arm64";
|
||||
compression = "none";
|
||||
hash@1{
|
||||
algo = "sha1";
|
||||
};
|
||||
};
|
||||
};
|
||||
configurations {
|
||||
default = "conf@1";
|
||||
conf@1{
|
||||
kernel = "kernel@1";
|
||||
fdt = "fdt@1";
|
||||
};
|
||||
};
|
||||
};
|
BIN
core/linux-aarch64-rc/kernel.keyblock
Normal file
BIN
core/linux-aarch64-rc/kernel.keyblock
Normal file
Binary file not shown.
BIN
core/linux-aarch64-rc/kernel_data_key.vbprivk
Normal file
BIN
core/linux-aarch64-rc/kernel_data_key.vbprivk
Normal file
Binary file not shown.
25
core/linux-aarch64-rc/linux-aarch64-rc-chromebook.install
Normal file
25
core/linux-aarch64-rc/linux-aarch64-rc-chromebook.install
Normal file
|
@ -0,0 +1,25 @@
|
|||
flash_kernel() {
|
||||
major=$(mountpoint -d / | cut -f 1 -d ':')
|
||||
minor=$(mountpoint -d / | cut -f 2 -d ':')
|
||||
device=$(cat /proc/partitions | awk {'if ($1 == "'${major}'" && $2 == "'${minor}'") print $4 '})
|
||||
device="/dev/${device/%2/1}"
|
||||
|
||||
echo "A new kernel version needs to be flashed onto ${device}."
|
||||
echo "Do you want to do this now? [y|N]"
|
||||
read -r shouldwe
|
||||
if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
|
||||
dd if=/boot/vmlinux.kpart of=${device}
|
||||
sync
|
||||
else
|
||||
echo "You can do this later by running:"
|
||||
echo "# dd if=/boot/vmlinux.kpart of=${device}"
|
||||
fi
|
||||
}
|
||||
|
||||
post_install () {
|
||||
flash_kernel
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
flash_kernel
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
# arg 2: the old package version
|
||||
|
||||
KERNEL_NAME=-aarch64-rc
|
||||
KERNEL_VERSION=4.13.0-rc3-2-ARCH
|
||||
KERNEL_VERSION=4.14.0-rc1-1-ARCH
|
||||
|
||||
post_install () {
|
||||
# updating module dependencies
|
||||
|
|
Loading…
Reference in a new issue