[Buildroot] [PATCH 3/4] package/openrc: adapt "modules" init script to busybox "modprobe"
unixmania at gmail.com
Thu Feb 27 20:16:38 UTC 2020
On Thu, Feb 27, 2020 at 3:57 PM Carlos Santos <unixmania at gmail.com> wrote:
> On Thu, Feb 27, 2020 at 2:27 PM Thomas Petazzoni
> <thomas.petazzoni at bootlin.com> wrote:
> > On Thu, 27 Feb 2020 09:39:37 -0300
> > unixmania at gmail.com wrote:
> > > +# modprobe can be provided by either kmod or busybox
> > > +ifeq ($(BR2_PACKAGE_KMOD_TOOLS),)
> > > +ifeq ($(BR2_PACKAGE_BUSYBOX),y)
> > > +# Busybox modprobe does not have a --first-time option; --verbose is just -v
> > > +# and --use-blacklist is just -b.
> > > +ifeq ($(call KCONFIG_GET_OPT,CONFIG_MODPROBE,$(BUSYBOX_BUILD_CONFIG)),y)
> > Is this working? Isn't that evaluated when Makefiles are parsed, i.e
> > before the build has extracted Busybox and created its .config file ?
> > Best regards,
> > Thomas
> > --
> > Thomas Petazzoni, CTO, Bootlin
> > Embedded Linux and Kernel engineering
> > https://bootlin.com
> Hum, not in a clean build. Good catch. :-(
> But it works if I use
> $(BR2_PACKAGE_BUSYBOX_CONFIG) $(BUSYBOX_BUILD_CONFIG)
> So in a clean/first build it will take the value from the first file
> and in a dirty build it will take the value from the second file.
I just sent a v2 which hopefully cover all the cases. It even deals
with kconfig fragment files.
Carlos Santos <unixmania at gmail.com>
More information about the buildroot