Building custom kernel

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Building custom kernel

Postby mfmfmfmfmfmf » Fri May 28, 2021 10:00 am

Hi everyone,

i want to test out some kernel features on my rpi. As far as I understand the process, I need to compile the kernel with a custom config and then install that custom kernel.

I followed the general instruction pointed out in the arch build system wiki https://wiki.archlinux.org/title/Kernel/Arch_Build_System.

1. I installed all the package to compile/build the kernel on my pi.
2. I pulled the PKBUILDS from https://github.com/archlinuxarm/PKGBUILDs
3. Navigated to the core/linux-armv7 folder
4. adapted the PKGBUILD and config file
5. updpkgsums
6. export MAKEFLAGS=-j$(nproc)
7. makepkg -s
8. Let it build

The next morning, I see that the process failed in the last steps with

$this->bbcode_second_pass_code('', '
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "linux-custom-armv7"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Adding install file...
cp: cannot stat '/home/xxx/linux/build/PKGBUILDs/core/linux-armv7/linux-custom-armv7.install': No such file or directory
==> ERROR: Failed to add install file to package.
')

So the question that I have is it possible to run only the final step again?
Since the error seems like a trivial naming error that I can fix easily by renaming the file.
Or do I have to run the complete process again?
I want to avoid the compile steps since they take quite some time.

I am thankful for any pointers :)
mfmfmfmfmfmf
 
Posts: 2
Joined: Thu May 13, 2021 6:04 pm

Re: Building custom kernel

Postby graysky » Fri May 28, 2021 10:40 am

Copy linux-armv7.install to linux-custom-armv7.install then repackage with makepkg -R

$this->bbcode_second_pass_quote('man makepkg', '
') -R, --repackage
Repackage contents of the package without rebuilding the package. This is useful if you forgot, for example, a
dependency or install file in your PKGBUILD and the build itself will not change.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Building custom kernel

Postby mfmfmfmfmfmf » Fri May 28, 2021 12:37 pm

Thank you. :)
Missed that option while reading the manpage :oops:
mfmfmfmfmfmf
 
Posts: 2
Joined: Thu May 13, 2021 6:04 pm


Return to ARMv7h

Who is online

Users browsing this forum: bulletmark and 12 guests