Compare commits
6 Commits
0fa9b0d85a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b9f1f2f39 | |||
| c5bfc7907b | |||
| 533b0b5ffc | |||
| eba54804d3 | |||
| 09b62923a8 | |||
| 960755e6a2 |
@@ -519,6 +519,8 @@ from_source() {
|
||||
local pkg config commit seed_file description
|
||||
local -a make_opts
|
||||
local -a config_opts=(
|
||||
"CONFIG_TARGET_${TARGET%%/*}=y"
|
||||
"CONFIG_TARGET_${TARGET//\//_}=y"
|
||||
"CONFIG_TARGET_PROFILE=DEVICE_$DEVICE"
|
||||
"CONFIG_TARGET_${TARGET//\//_}_DEVICE_$DEVICE=y"
|
||||
"CONFIG_TARGET_ROOTFS_${FILESYSTEM^^}=y"
|
||||
@@ -607,7 +609,7 @@ from_source() {
|
||||
fi
|
||||
|
||||
# Use a custom (faster) mirror
|
||||
# execute sed -i -E 's;git.openwrt.org/(feed|project);github.com/openwrt;' feeds.conf.default
|
||||
execute sed -i -E 's;git.openwrt.org/(feed|project);github.com/openwrt;' feeds.conf.default
|
||||
|
||||
# Update package feed
|
||||
./scripts/feeds update -a -f &&
|
||||
@@ -627,7 +629,8 @@ from_source() {
|
||||
config_opts+=("$config")
|
||||
done
|
||||
|
||||
# Write options to config seed file
|
||||
# Reset and write options to config seed file
|
||||
[[ -f $seed_file ]] && execute rm -f "$seed_file"
|
||||
for config in "${config_opts[@]}"; do
|
||||
debug "Writing $config to $seed_file"
|
||||
echo "$config" >> "$seed_file"
|
||||
|
||||
Reference in New Issue
Block a user