From 8b34a997855d2a58c8e006973e3c5de620831457 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Fri, 4 Feb 2022 00:16:53 +0100 Subject: [PATCH] config: add ADD_KMOD_FEED This feed contains Kernel specific kmods. Previously it was only added for buildbots, however other users or developers may want to use it. Signed-off-by: Paul Spooren --- config/Config-build.in | 8 ++++++++ include/feeds.mk | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/Config-build.in b/config/Config-build.in index 71e66661b3..77709c3960 100644 --- a/config/Config-build.in +++ b/config/Config-build.in @@ -50,6 +50,14 @@ menu "Global build settings" - Enabling per-device rootfs support ... + config ADD_KMOD_FEED + bool "Add extra feed for Kernel modules (kmods)" + default BUILDBOT + help + Add extra feed to /etc/apk/repositories containing all compatible + kmods. This allows to install kmods even after the tree moved on + to a new Kernel version or configuration. + comment "General build options" diff --git a/include/feeds.mk b/include/feeds.mk index a27aa709c4..b674a47c8a 100644 --- a/include/feeds.mk +++ b/include/feeds.mk @@ -33,7 +33,7 @@ define FeedSourcesAppend echo '%U/targets/%S/packages/packages.adb'; \ $(strip $(if $(CONFIG_PER_FEED_REPO), \ echo '%U/packages/%A/base/packages.adb'; \ - $(if $(filter %SNAPSHOT-y,$(VERSION_NUMBER)-$(CONFIG_BUILDBOT)), \ + $(if $(CONFIG_ADD_KMOD_FEED), \ echo '%U/targets/%S/kmods/$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC)/packages.adb';) \ $(foreach feed,$(FEEDS_AVAILABLE), \ $(if $(CONFIG_FEED_$(feed)), \ -- 2.30.2