source "target/Config.in"
-config DEVEL
+config ALL
+ bool "Select all packages by default"
+ default n
+
+menuconfig DEVEL
bool "Advanced configuration options (for developers)"
default n
select BUILDOPTS
select TOOLCHAINOPTS
-config ALL
- bool "Select all packages by default"
- default n
+menuconfig BUILDOPTS
+ bool "Build Options" if DEVEL
config WGET
string
+ prompt "WGET command" if BUILDOPTS
default "wget --passive-ftp -nd"
-menuconfig BUILDOPTS
- bool "Build Options" if DEVEL
-
config TAR_VERBOSITY
bool
prompt "Tar verbose" if BUILDOPTS
source "target/linux/Config.in"
source ".config.in"
-menu "busybox"
-source "package/busybox/config/Config.in"
-endmenu
@echo Collecting package info...
@-for makefile in package/*/Makefile; do \
echo Source-Makefile: $$makefile; \
- $(MAKE) DUMP=1 -f $$makefile 2>&- || true; \
+ $(MAKE) --no-print-dir DUMP=1 -f $$makefile 2>&- || true; \
done > $@
endif
include $(TOPDIR)/package/rules.mk
define Package/busybox
-CONFIGFILE:=config/Config.in
SECTION:=base
CATEGORY:=Base system
+MENU:=1
DEFAULT:=y
TITLE:=Core utilities for embedded Linux
DESCRIPTION:=The Swiss Army Knife of embedded Linux. \\\
It slices, it dices, it makes Julian Fries.
URL:=http://busybox.net/
+CONFIG:=menu "Configuration" \\\
+ depends on PACKAGE_busybox \\\
+source "package/busybox/config/Config.in" \\\
+endmenu
endef
define Build/Configure
DUMPINFO += \
echo "@@";
+ ifneq ($(CONFIG),)
+ DUMPINFO += \
+ echo "Config: $(CONFIG)" | sed -e 's,\\,\n,g'; \
+ echo "@@";
+ endif
+
$$(IDIR_$(1))/CONTROL/control: $(PKG_BUILD_DIR)/.prepared
mkdir -p $$(IDIR_$(1))/CONTROL
echo "Package: $(1)" > $$(IDIR_$(1))/CONTROL/control
ifneq ($(DUMP),)
dumpinfo: FORCE
- $(DUMPINFO)
+ @$(DUMPINFO)
else
$(PACKAGE_DIR):
}
print "\t\thelp\n";
print $pkg->{description};
- print "\n"
+ print "\n";
+
+ $pkg->{config} and print $pkg->{config}."\n";
}
}
print "endmenu\n\n";
$desc .= "\t\t$line";
}
$pkg->{description} = $desc;
+ };
+ $line =~ /^Config: \s*(.*)\s*$/ and do {
+ my $conf = "$1\n";
+ my $line;
+ while ($line = <>) {
+ last if $line =~ /^@@/;
+ $conf .= "$line";
+ }
+ $pkg->{config} = $conf;
}
}