On Fri, Aug 03, 2018 at 02:44:03PM -0400, j...@ringle.org wrote: > From: Jon Ringle <jrin...@gridpoint.com> > > In scripts/kconfig/zconf.l the function zconf_fopen() is used to open files > being opened via the `source` kconfig keyword. If it fails to open the > given file, it will try to open the file under $(PTXDIST_TOPDIR) > > This allows a local rules/*.in to extend options to a that are project > specific without having to maintain the entire rules/*.in file locally
I think just creating a extra file 'socat-extras.in' with the additional options should work too. Michael > For example: > ~/git/rootfs$ cat rules/socat.in > ## SECTION=networking > > source "rules/socat.in" > > if SOCAT > > config SOCAT_SYSTEMD_SOCKET > bool > prompt "systemd socket activation" > select SYSTEMD > help > Include systemd socket activation support. > > endif > > Signed-off-by: Jon Ringle <jrin...@gridpoint.com> > --- > scripts/kconfig/lkc.h | 2 +- > scripts/kconfig/zconf.l | 4 +--- > 2 files changed, 2 insertions(+), 4 deletions(-) > > diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h > index 91ca126..f370af1 100644 > --- a/scripts/kconfig/lkc.h > +++ b/scripts/kconfig/lkc.h > @@ -23,7 +23,7 @@ extern "C" { > > #include "lkc_proto.h" > > -#define SRCTREE "srctree" > +#define SRCTREE "PTXDIST_TOPDIR" > > #ifndef PACKAGE > #define PACKAGE "linux" > diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l > index c410d25..959c86c 100644 > --- a/scripts/kconfig/zconf.l > +++ b/scripts/kconfig/zconf.l > @@ -269,9 +269,7 @@ static void zconf_endhelp(void) > /* > * Try to open specified file with following names: > * ./name > - * $(srctree)/name > - * The latter is used when srctree is separate from objtree > - * when compiling the kernel. > + * $(PTXDIST_TOPDIR)/name > * Return NULL if file is not found. > */ > FILE *zconf_fopen(const char *name) > -- > 1.9.1 > > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de