lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080506043439.GA13366@uranus.ravnborg.org>
Date:	Tue, 6 May 2008 06:34:39 +0200
From:	Sam Ravnborg <sam@...nborg.org>
To:	Roman Zippel <zippel@...ux-m68k.org>
Cc:	linux-kbuild <linux-kbuild@...r.kernel.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] kconfig: introduce K= support

On Tue, May 06, 2008 at 04:55:55AM +0200, Roman Zippel wrote:
> Hi,
> 
> On Sun, 4 May 2008, Sam Ravnborg wrote:
> 
> Below is patch which adds a library function to set the default values in 
> a much simpler way.
> The behaviour is slightly different, now it's closer to generating a 
> .config with all possible symbols set to some value and using that to 
> generate the final config. It has the advantage of not being as dependend 
> on the order of the symbols, e.g. with allmodconfig this sets a few more 
> symbols to 'm'.

Thanks. I will rework the patch to use this function.

> 
> > +# An arch may use KBUILD_DEFCONFIG to specify defconfig file
> > +# fallback to arch/$ARCH/defconfig
> > +defconfig-file := $(if $(KBUILD_DEFCONFIG),            \
> > +        arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG),   \
> > +        arch/$(SRCARCH)/defconfig)
> > +defconfig-file := $(strip $(defconfig-file))
> 
> init/Kconfig has a DEFCONFIG_LIST which is intended to be used for this.

The plan is to drop arch/$(SRCARCH)/defconfig and solely rely
on KBUILD_DEFCONFIG.
And I see KBUILD_DEFCONFIG thus for a "make defconfig" the
DEFCONFIG_LIST becomes unused.

But I guess your point is that we should dropt KBUILD_DEFCONFIG
entirely and rely on DEFCONFIG_LIST instead.

I will try it out.

> 
> > +	if (ac < 2) {
> > +		usage();
> > +		exit(1);
> > +	}
> > +	if (strcmp(av[1], "allnoconfig") == 0)
> > +		default_value = set_no;
> > +	else if (strcmp(av[1], "allyesconfig") == 0)
> > +		default_value = set_yes;
> > +	else if (strcmp(av[1], "allmodconfig") == 0)
> > +		default_value = set_mod;
> > +	else if (strcmp(av[1], "alldefconfig") == 0)
> > +		default_value = set_default;
> > +	else if (strcmp(av[1], "randconfig") == 0) {
> > +		default_value = set_random;
> > +		srand(time(NULL));
> > +	} else {
> > +		usage();
> > +		exit(1);
> > +	}
> > +	if (strcmp(av[2], "-b") == 0) {
> > +		config_file = av[3];
> > +		kconfig_file = av[4];
> > +	} else {
> > +		kconfig_file = av[2];
> > +	}
> 
> Even if it has only a single option, please keep using getopt().

OK.

Thanks for your feedback.
PS. I will post the updated patches in the weekend. Not that they
are difficult but I'm on the way out of the door for a few days
travelling.

	Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ