mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
coreos-kernel: always install .config to kernel build directory
This commit is contained in:
parent
eec2074699
commit
a9dca85a2d
@ -165,8 +165,19 @@ coreos-kernel_src_install() {
|
||||
|
||||
local version=$(kmake -s --no-print-directory kernelrelease)
|
||||
dosym "vmlinuz-${version}" /usr/boot/vmlinuz
|
||||
dosym "config-${version}" /usr/boot/config
|
||||
|
||||
shred_keys
|
||||
}
|
||||
|
||||
EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_compile src_install
|
||||
coreos-kernel_pkg_postinst() {
|
||||
# linux-info always expects to be able to find the current .config
|
||||
# so copy it into the build tree if it isn't already there.
|
||||
if ! cmp --quiet "${ROOT}/usr/boot/config" "${KBUILD_OUTPUT}/.config"; then
|
||||
cp "${ROOT}/usr/boot/config" "${KBUILD_OUTPUT}/.config"
|
||||
chown ${PORTAGE_USERNAME:-portage}:${PORTAGE_GRPNAME:-portage} \
|
||||
"${KBUILD_OUTPUT}/.config"
|
||||
fi
|
||||
}
|
||||
|
||||
EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_compile src_install pkg_postinst
|
||||
|
Loading…
x
Reference in New Issue
Block a user