summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangYoun Kwak <sy.kwak@samsung.com>2024-07-19 09:19:20 +0900
committerSangYoun Kwak <sy.kwak@samsung.com>2024-07-19 09:21:04 +0900
commit4ca5d84aefbb725878138344ac5af8994c4a0edb (patch)
tree639493f225c581ca60a8c2c047e092ef6e8fcb37
parent5f703890697b243d25698669ec2e6920cf351343 (diff)
downloadrootstrap-4ca5d84aefbb725878138344ac5af8994c4a0edb.tar.gz
rootstrap-4ca5d84aefbb725878138344ac5af8994c4a0edb.tar.bz2
rootstrap-4ca5d84aefbb725878138344ac5af8994c4a0edb.zip
Conditions: 1. The .xml files are separated as another repository and its install location is under /tmp. 2. The convert32.sh and convert64.sh scripts convert paths in the .xml files as their architecture(ex: /usr/lib -> /usr/lib64) and they searchs .xml files under its abuild directory. According to conditions above, it is unable to convert architecture specific paths of .xml files. Thus, some files are not copied. To solve this problem, .xml files under /tmp are copied to abuild directory. (manipulating .xml files under /tmp directory causes permission problem, so they should be copied beforehand) Change-Id: Iedc303c1720e41e33b2970b765630f7b5080054d Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
-rwxr-xr-xgenerate_rootstrap.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/generate_rootstrap.sh b/generate_rootstrap.sh
index 8262fbc..b2ab78a 100755
--- a/generate_rootstrap.sh
+++ b/generate_rootstrap.sh
@@ -19,7 +19,7 @@ function generate_rootstrap_ix86 {
return $?
fi
- ./make_rootstrap.sh -C rs-config /tmp/rs_resource --emulator -A i686
+ ./make_rootstrap.sh -C rs-config ./rs_resource --emulator -A i686
RET=$?
if [[ ${RET} -ne 0 ]]; then
echo "Failed to create rootstrap."
@@ -35,7 +35,7 @@ function generate_rootstrap_x86_64 {
return $?
fi
- ./make_rootstrap_64.sh -C rs-config /tmp/rs_resource --emulator -A x86_64
+ ./make_rootstrap_64.sh -C rs-config ./rs_resource --emulator -A x86_64
RET=$?
if [[ ${RET} -ne 0 ]]; then
echo "Failed to create rootstrap."
@@ -51,7 +51,7 @@ function generate_rootstrap_arm {
return $?
fi
- ./make_rootstrap.sh -C rs-config /tmp/rs_resource --target -A arm
+ ./make_rootstrap.sh -C rs-config ./rs_resource --target -A arm
RET=$?
if [[ ${RET} -ne 0 ]]; then
echo "Failed to create rootstrap."
@@ -67,7 +67,7 @@ function generate_rootstrap_aarch64 {
return $?
fi
- ./make_rootstrap_64.sh -C rs-config /tmp/rs_resource --target -A aarch64
+ ./make_rootstrap_64.sh -C rs-config ./rs_resource --target -A aarch64
RET=$?
if [[ ${RET} -ne 0 ]]; then
echo "Failed to create rootstrap."
@@ -83,7 +83,7 @@ function generate_rootstrap_riscv64 {
return $?
fi
- ./make_rootstrap_64.sh -C rs-config /tmp/rs_resource --target -A riscv64
+ ./make_rootstrap_64.sh -C rs-config ./rs_resource --target -A riscv64
RET=$?
if [[ ${RET} -ne 0 ]]; then
echo "Failed to create rootstrap."
@@ -95,6 +95,8 @@ function generate_rootstrap_riscv64 {
function generate_rootstrap {
local arch=$1
+ cp -r '/tmp/rs_resource' .
+
case "${arch}" in
"arm")
generate_rootstrap_arm