diff options
author | 이상욱/SE팀(SR)/삼성전자 <sangwook96.lee@samsung.com> | 2023-04-10 11:20:51 +0900 |
---|---|---|
committer | 이상욱/SE팀(SR)/삼성전자 <sangwook96.lee@samsung.com> | 2023-04-10 11:20:51 +0900 |
commit | ee836c80275fb21893d1f2723776ee9dbc9a6352 (patch) | |
tree | d89dd2bec3c41d696856585f6c61454a0f4dcede /script/convert32.sh | |
parent | 77f88860274906f4bc7ca01c36116d0df2d1b207 (diff) | |
download | rootstrap-ee836c80275fb21893d1f2723776ee9dbc9a6352.tar.gz rootstrap-ee836c80275fb21893d1f2723776ee9dbc9a6352.tar.bz2 rootstrap-ee836c80275fb21893d1f2723776ee9dbc9a6352.zip |
Add common profile
Change-Id: I224c05b7f8ae952b95a3ec3f508d5652556660fb
Signed-off-by: 이상욱/SE팀(SR)/삼성전자 <sangwook96.lee@samsung.com>
Diffstat (limited to 'script/convert32.sh')
-rw-r--r-- | script/convert32.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/script/convert32.sh b/script/convert32.sh new file mode 100644 index 0000000..6793dc5 --- /dev/null +++ b/script/convert32.sh @@ -0,0 +1,34 @@ +#/bin/bash + +# xml Converter +git checkout ./rs_resource ./rs_resource_invisible +find ./ \( -name "*-rs.xml" ! -iname "kernel-headers-linux-rs.xml" \) \ +-exec xmlstarlet ed -L -u //rootstrap/emulator/rpm/@arch -v "i686" {} \; \ +-exec xmlstarlet ed -L -u //rootstrap/target/rpm/@arch -v "armv7l" {} \; \ +-exec xmlstarlet ed -L -u //rootstrap/library_path -v "/usr/lib" {} \; \ +-exec sed -i "s@<file>/usr/lib64/@<file>/usr/lib/@" {} \; \ +-exec sed -i "s@<file>/lib64/@<file>/lib32/@" {} \; \ +-exec sed -i "s@<include_path>/usr/lib64/@<include_path>/usr/lib32/@" {} \; + +# rs-config +BASE_URL_POSTFIX_TARGET="/repos/standard/packages/" +BASE_URL_POSTFIX_EMULATOR="/repos/standard/packages/" + +sed -i "s@BASE_URL_POSTFIX_TARGET=.*@BASE_URL_POSTFIX_TARGET=\"${BASE_URL_POSTFIX_TARGET}\"@" rs-config +sed -i "s@BASE_URL_POSTFIX_EMULATOR=.*@BASE_URL_POSTFIX_EMULATOR=\"${BASE_URL_POSTFIX_EMULATOR}\"@" rs-config + +SNAPSHOT_URL_POSTFIX_EMULATOR="/repos/emulator/packages/" +SNAPSHOT_URL_POSTFIX_TARGET="/repos/standard/packages/" + +sed -i "s@SNAPSHOT_URL_POSTFIX_EMULATOR=.*@SNAPSHOT_URL_POSTFIX_EMULATOR=\"${SNAPSHOT_URL_POSTFIX_EMULATOR}\"@" rs-config +sed -i "s@SNAPSHOT_URL_POSTFIX_TARGET=.*@SNAPSHOT_URL_POSTFIX_TARGET=\"${SNAPSHOT_URL_POSTFIX_TARGET}\"@" rs-config + +# Post Script +#git checkout ./make_rootstrap.sh +#sed -i "s/asm-arm64/asm-arm/g" make_rootstrap.sh +#sed -i "s/asm-ia64/asm-x86/g" make_rootstrap.sh + +#git checkout ./script/rootstrap_gen_1.0.sh +#POSTLINKER_PATH=${PWD_BACKUP}"/script/postlinker" +#3sed -i "s@POSTLINKER_PATH=.*postlinker.*\$@POSTLINKER_PATH=\$\{PWD_BACKUP\}/script/postlinker@" ./script/rootstrap_gen_1.0.sh +#sed -i "s@/usr/lib64@/usr/lib@" ./script/rootstrap_gen_1.0.sh |