Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IOWRT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IOPSYS
IOWRT
Commits
90237dd1
Commit
90237dd1
authored
18 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
Make UCI preconfiguration optional and disabled by default
SVN-Revision: 7095
parent
90acc0e7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Config.in
+58
-57
58 additions, 57 deletions
Config.in
Makefile
+1
-1
1 addition, 1 deletion
Makefile
scripts/metadata.pl
+6
-6
6 additions, 6 deletions
scripts/metadata.pl
with
65 additions
and
64 deletions
Config.in
+
58
−
57
View file @
90237dd1
...
...
@@ -12,63 +12,6 @@ config HAVE_DOT_CONFIG
source "target/Config.in"
config ALL
bool "Select all packages by default"
default n
menuconfig DEVEL
bool "Advanced configuration options (for developers)"
default n
select BUILDOPTS
select TOOLCHAINOPTS if !NATIVE_TOOLCHAIN
config BROKEN
bool "Show broken platforms / packages" if DEVEL
default n
config LOCALMIRROR
string "Local mirror for source packages" if DEVEL
menuconfig BUILDOPTS
bool "Build Options" if DEVEL
config AUTOREBUILD
bool
prompt "Automatic rebuild of packages" if BUILDOPTS
default y
help
Automatically rebuild packages when their files change
config TAR_VERBOSITY
bool
prompt "Tar verbose" if BUILDOPTS
default n
config JLEVEL
int
prompt "Number of jobs to run simultaneously" if BUILDOPTS
default "1"
help
Number of jobs to run simultanesouly
config CCACHE
bool
prompt "Use ccache" if BUILDOPTS
default n
help
Compiler cache; see http://ccache.samba.org/
config SOURCE_FEEDS
string
prompt "Enter here external source feeds you want to include" if BUILDOPTS
default "https://svn.openwrt.org/openwrt/packages/"
help
Separate sources with spaces : " "
source "toolchain/Config.in"
source "target/imagebuilder/Config.in"
source "target/sdk/Config.in"
menu "Target Images"
config TARGET_ROOTFS_INITRAMFS
bool "ramdisk"
...
...
@@ -126,5 +69,63 @@ source "target/linux/*/image/Config.in"
endmenu
config ALL
bool "Select all packages by default"
default n
menuconfig DEVEL
bool "Advanced configuration options (for developers)"
default n
select BUILDOPTS
select TOOLCHAINOPTS if !NATIVE_TOOLCHAIN
config BROKEN
bool "Show broken platforms / packages" if DEVEL
default n
config LOCALMIRROR
string "Local mirror for source packages" if DEVEL
menuconfig BUILDOPTS
bool "Build Options" if DEVEL
config AUTOREBUILD
bool
prompt "Automatic rebuild of packages" if BUILDOPTS
default y
help
Automatically rebuild packages when their files change
config TAR_VERBOSITY
bool
prompt "Tar verbose" if BUILDOPTS
default n
config JLEVEL
int
prompt "Number of jobs to run simultaneously" if BUILDOPTS
default "1"
help
Number of jobs to run simultanesouly
config CCACHE
bool
prompt "Use ccache" if BUILDOPTS
default n
help
Compiler cache; see http://ccache.samba.org/
config SOURCE_FEEDS
string
prompt "Enter here external source feeds you want to include" if BUILDOPTS
default "https://svn.openwrt.org/openwrt/packages/"
help
Separate sources with spaces : " "
source "toolchain/Config.in"
source "target/imagebuilder/Config.in"
source "target/sdk/Config.in"
source "tmp/.config-package.in"
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
1
View file @
90237dd1
...
...
@@ -53,7 +53,7 @@ tmp/.%info:
tmpinfo-clean
:
FORCE
-
rm
-rf
tmp/.
*
info
tmp/.config-%.in
:
tmp/.%info
tmp/.config-%.in
:
tmp/.%info
scripts/metadata.pl
./scripts/metadata.pl
$*
_config <
$<
>
$@
||
rm
-f
$@
.config
:
./scripts/config/conf tmp/.config-target.in tmp/.config-package.in
...
...
This diff is collapsed.
Click to expand it.
scripts/metadata.pl
+
6
−
6
View file @
90237dd1
...
...
@@ -451,22 +451,20 @@ sub print_package_config_category($) {
sub
gen_package_config
()
{
parse_package_metadata
();
print
"
menu
\"
Image configuration
\"\n
";
print
"
menu
config UCI_PRECONFIG
\n\t
bool
\"
Image configuration
\"\n
";
foreach
my
$preconfig
(
keys
%preconfig
)
{
print
"
\t
comment
\"
$preconfig
\"\n
";
foreach
my
$cfg
(
@
{
$preconfig
{
$preconfig
}})
{
my
$conf
=
$cfg
->
{
id
};
$conf
=~
tr/\.-/__/
;
print
<<EOF
config UCI_PRECONFIG_$conf
string "$cfg->{label}"
string "$cfg->{label}"
if UCI_PRECONFIG
depends PACKAGE_$preconfig
default "$cfg->{default}"
EOF
}
}
print
"
endmenu
\n\n
";
print_package_config_category
'
Base system
';
foreach
my
$cat
(
keys
%category
)
{
print_package_config_category
$cat
;
...
...
@@ -542,8 +540,10 @@ sub gen_package_mk() {
( \\
$cmds \\
) > \$@
preconfig: \$(TARGET_DIR)/etc/uci-defaults/$preconfig
ifneq (\$(UCI_PRECONFIG)\$(CONFIG_UCI_PRECONFIG),)
preconfig: \$(TARGET_DIR)/etc/uci-defaults/$preconfig
endif
EOF
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment