Skip to content

Take kernel config from "startdir" when copying back to aport folder

Right now every (I checked) linux-* package we have, in the APKBUILD menuconfig method, at the end it copies the updated .config file to the "startdir" (cp .config "$startdir"/$_config), and from python it copies back to the aport/device/linux-* folder.

What I noticed is that the config file taken to be copied back in the aports folder is not the one in the "startdir", but it's hardcoded to args.work + "/chroot_native/home/user/build/src/build/.config" (see here).

In the new APKBUILD I'm working on, I don't use that additional build subfolder but I compile everything directly in the src folder (like they usually do in other alpine packages), and because of that I changed the python script to copy back to the aports folder the "$startdir"/$_config instead of the .config in the build subfolder folder.

This small change doesn't break the existing packages. I tested it.

Merge request reports