some adjustments such that makepkg does everything automatically

This commit is contained in:
Christian Zimmermann 2020-11-28 23:10:34 +01:00
parent 3dc694e316
commit c0d43bc699
5 changed files with 10 additions and 5 deletions

4
.gitignore vendored
View file

@ -1,3 +1,3 @@
*.tar.xz
kernel-headers/src/*
kernel-headers/pkg/*
kernel-pkgs/src/*
kernel-pkgs/pkg/*

View file

@ -51,7 +51,7 @@ Contains:
```bash
/boot.img
/zImage
/dts/mt7623n-bananapi-bpi-r2.dtb
/dbts/mt7623n-bananapi-bpi-r2.dtb
```
I recommend to create a second `.img` file which boots into former kernel images (might be useful in the case of unsuccessful kernel update).
@ -73,7 +73,7 @@ mkdir root.setup
mount /dev/mmcblk0p1 boot.setup
mount /dev/mmcblk0p2 root.setup
cp arch/arm/boot/zImage boot.setup
cp arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb boot.setup/dts
cp arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb boot.setup/dtbs
rsync -uavP modules/lib/modules/ root.setup/lib/modules
mkimage -A arm -T script -C none -n "Load Kernel" -d <this_repo>/u-boot/boot.cmd boot.img
cp boot.img boot.setup
@ -97,4 +97,7 @@ TODO: adapt pacman sources such that the pkgs `linux` and `linux-headers` are in
In order to install the linux headers needed to build modules from other packages you need to compile the kernel directly on the arm cpu. Boot into the system and clone the [main line kernel repository](https://github.com/torvalds/linux.git). Checkout the latest releas tag, copy corresponding config and apply corresponding patches.
```bash
```
...!!!

View file

@ -23,6 +23,7 @@ prepare() {
# add upstream patch
#git apply --whitespace=nowarn ../patch-${pkgver}
git apply --whitespace=nowarn ${srcdir}/../../kernel/patches/patch-${pkgver}
# RCN patch
#git apply ../patch-${rcnver%.0}-${rcnrel}.diff
@ -38,7 +39,7 @@ prepare() {
#git apply ../0008-ARM-dove-enable-ethernet-on-D3Plug.patch
#git apply ../0009-USB-Armory-MkII-support.patch
cat "${srcdir}/config" > ./.config
cat "${srcdir}/../../kernel/config-${pkgver}" > ./.config
# add pkgrel to extraversion
#sed -ri "s|^(EXTRAVERSION =)(.*)|\1 \2-${pkgrel}|" Makefile

1
kernel/config-5.9.0 Symbolic link
View file

@ -0,0 +1 @@
linux-bbf5c979011a099af5dc76498918ed7df445635b.config