tools-uclibc: improve template logic for armv7a
This commit is contained in:
parent
29dff6b837
commit
d26cab393a
|
@ -16,10 +16,28 @@ prepare_confs() {
|
|||
local flavor=$2
|
||||
|
||||
for s in 1 2 3; do
|
||||
cat stage${s}-${arch}-uclibc-${flavor}.conf.template | \
|
||||
|
||||
local cstage=stage${s}
|
||||
local p=$(( s - 1 ))
|
||||
[[ $p == 0 ]] && p=3
|
||||
local pstage=stage${p}
|
||||
local tarch="${arch%32r2}"
|
||||
local parch="arm/${tarch}"
|
||||
|
||||
cat stage-all.conf.template | \
|
||||
sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
|
||||
-e "s:MyCatalyst:$(pwd):" > stage${s}-${arch}-uclibc-${flavor}.conf
|
||||
-e "s:CSTAGE:${cstage}:g" \
|
||||
-e "s:PSTAGE:${pstage}:g" \
|
||||
-e "s:SARCH:${arch}:g" \
|
||||
-e "s:PARCH:${parch}:g" \
|
||||
-e "s:TARCH:${tarch}:g" \
|
||||
-e "s:gentoo-linux-uclibc:softfp-linux-uclibceabi:" \
|
||||
-e "s:FLAVOR:${flavor}:g" \
|
||||
-e "s:MYCATALYST:$(pwd):g" \
|
||||
> stage${s}-${arch}-uclibc-${flavor}.conf
|
||||
done
|
||||
|
||||
sed -i "/^chost/d" stage3-${arch}-uclibc-${flavor}.conf
|
||||
}
|
||||
|
||||
banner() {
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
subarch: armv7a
|
||||
target: stage1
|
||||
version_stamp: uclibc-hardened
|
||||
rel_type: hardened/armv7a
|
||||
profile: hardened/linux/uclibc/arm/armv7a
|
||||
snapshot: current
|
||||
source_subpath: hardened/armv7a/stage3-armv7a-uclibc-hardened
|
||||
chost: armv7a-softfp-linux-uclibceabi
|
||||
portage_confdir: MyCatalyst/portage.arm.hardened
|
|
@ -1,9 +0,0 @@
|
|||
subarch: armv7a
|
||||
target: stage1
|
||||
version_stamp: uclibc-vanilla
|
||||
rel_type: vanilla/armv7a
|
||||
profile: hardened/linux/uclibc/arm/armv7a
|
||||
snapshot: current
|
||||
source_subpath: vanilla/armv7a/stage3-armv7a-uclibc-vanilla
|
||||
chost: armv7a-softfp-linux-uclibceabi
|
||||
portage_confdir: MyCatalyst/portage.arm.vanilla
|
|
@ -1,9 +0,0 @@
|
|||
subarch: armv7a
|
||||
target: stage2
|
||||
version_stamp: uclibc-hardened
|
||||
rel_type: hardened/armv7a
|
||||
profile: hardened/linux/uclibc/arm/armv7a
|
||||
snapshot: current
|
||||
source_subpath: hardened/armv7a/stage1-armv7a-uclibc-hardened
|
||||
chost: armv7a-softfp-linux-uclibceabi
|
||||
portage_confdir: MyCatalyst/portage.arm.hardened
|
|
@ -1,9 +0,0 @@
|
|||
subarch: armv7a
|
||||
target: stage2
|
||||
version_stamp: uclibc-vanilla
|
||||
rel_type: vanilla/armv7a
|
||||
profile: hardened/linux/uclibc/arm/armv7a
|
||||
snapshot: current
|
||||
source_subpath: vanilla/armv7a/stage1-armv7a-uclibc-vanilla
|
||||
chost: armv7a-softfp-linux-uclibceabi
|
||||
portage_confdir: MyCatalyst/portage.arm.vanilla
|
|
@ -1,8 +0,0 @@
|
|||
subarch: armv7a
|
||||
target: stage3
|
||||
version_stamp: uclibc-hardened
|
||||
rel_type: hardened/armv7a
|
||||
profile: hardened/linux/uclibc/arm/armv7a
|
||||
snapshot: current
|
||||
source_subpath: hardened/armv7a/stage2-armv7a-uclibc-hardened
|
||||
portage_confdir: MyCatalyst/portage.arm.hardened
|
|
@ -1,8 +0,0 @@
|
|||
subarch: armv7a
|
||||
target: stage3
|
||||
version_stamp: uclibc-vanilla
|
||||
rel_type: vanilla/armv7a
|
||||
profile: hardened/linux/uclibc/arm/armv7a
|
||||
snapshot: current
|
||||
source_subpath: vanilla/armv7a/stage2-armv7a-uclibc-vanilla
|
||||
portage_confdir: MyCatalyst/portage.arm.vanilla
|
Loading…
Reference in a new issue