From f77b88d124ea1c900f9cf5e04046939aad48bbe1 Mon Sep 17 00:00:00 2001 From: mbm Date: Sun, 6 Mar 2005 03:34:52 +0000 Subject: nbd's makefile/menuconfig rewrite git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@307 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/gen_busybox_config.pl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 scripts/gen_busybox_config.pl (limited to 'scripts/gen_busybox_config.pl') diff --git a/scripts/gen_busybox_config.pl b/scripts/gen_busybox_config.pl new file mode 100755 index 000000000..1a84ab999 --- /dev/null +++ b/scripts/gen_busybox_config.pl @@ -0,0 +1,22 @@ +#!/usr/bin/perl +use strict; + +my $line; +my $l1 = ''; +my $l2 = '=y'; +while (<>) { + chomp; + /^(# )BR2_LARGEFILE(.+)$/ and do { + $l1 = $1; + $l2 = $2; + }; + /^(# )?BUSYBOX_(.+)/ and do { + my $p1 = $1; + my $p2 = $2; + $p2 =~ /(CONFIG_LFS|FDISK_SUPPORT_LARGE_DISKS)/ and do { + $p1 = $l1; + $p2 = "$1$l2"; + }; + print "$p1$p2\n"; + } +} -- cgit v1.2.3 From 739f48b3cee7682efc32acf30b141801a48b016f Mon Sep 17 00:00:00 2001 From: mbm Date: Fri, 12 May 2006 21:33:07 +0000 Subject: fix busybox config parsing for new config format git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3770 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/gen_busybox_config.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/gen_busybox_config.pl') diff --git a/scripts/gen_busybox_config.pl b/scripts/gen_busybox_config.pl index 1a84ab999..0c70b4a11 100755 --- a/scripts/gen_busybox_config.pl +++ b/scripts/gen_busybox_config.pl @@ -6,11 +6,11 @@ my $l1 = ''; my $l2 = '=y'; while (<>) { chomp; - /^(# )BR2_LARGEFILE(.+)$/ and do { + /^(# )CONFIG_LARGEFILE(.+)$/ and do { $l1 = $1; $l2 = $2; }; - /^(# )?BUSYBOX_(.+)/ and do { + /^(# )?CONFIG_BUSYBOX_(.+)/ and do { my $p1 = $1; my $p2 = $2; $p2 =~ /(CONFIG_LFS|FDISK_SUPPORT_LARGE_DISKS)/ and do { -- cgit v1.2.3 From 02cdebbb91a33d8e24da1c94a9d93ac39be168a7 Mon Sep 17 00:00:00 2001 From: mbm Date: Tue, 27 Jun 2006 00:35:46 +0000 Subject: credit where credit is due git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4091 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/gen_busybox_config.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/gen_busybox_config.pl') diff --git a/scripts/gen_busybox_config.pl b/scripts/gen_busybox_config.pl index 0c70b4a11..9360052d2 100755 --- a/scripts/gen_busybox_config.pl +++ b/scripts/gen_busybox_config.pl @@ -1,4 +1,11 @@ #!/usr/bin/perl +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + use strict; my $line; -- cgit v1.2.3