Commit db7b8602816ed6230d21ae055be5fda55549fb50
1 parent
aae62584a6
gitlab-ci: Have buildman use /tmp for output
When running as another user we might not be able to use '..' for certain directories and this is the default for buildman. Specify an output directory instead. Signed-off-by: Tom Rini <trini@konsulko.com>
Showing 1 changed file with 13 additions and 13 deletions Side-by-side Diff
.gitlab-ci.yml
... | ... | @@ -36,9 +36,9 @@ |
36 | 36 | # use clang only do one configuration. |
37 | 37 | - if [[ "${BUILDMAN}" != "" ]]; then |
38 | 38 | ret=0; |
39 | - tools/buildman/buildman -P -E ${BUILDMAN} ${OVERRIDE}|| ret=$?; | |
39 | + tools/buildman/buildman -o /tmp -P -E ${BUILDMAN} ${OVERRIDE}|| ret=$?; | |
40 | 40 | if [[ $ret -ne 0 && $ret -ne 129 ]]; then |
41 | - tools/buildman/buildman -sdeP ${BUILDMAN}; | |
41 | + tools/buildman/buildman -o /tmp -sdeP ${BUILDMAN}; | |
42 | 42 | exit $ret; |
43 | 43 | fi; |
44 | 44 | fi |
... | ... | @@ -46,7 +46,7 @@ |
46 | 46 | # never prevent any test from running. That way, we can always pass |
47 | 47 | # "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom |
48 | 48 | # value. |
49 | - - export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/${TEST_PY_BD}; | |
49 | + - export UBOOT_TRAVIS_BUILD_DIR=/tmp/.bm-work/${TEST_PY_BD}; | |
50 | 50 | export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:/usr/bin:/bin; |
51 | 51 | export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci; |
52 | 52 | if [[ "${TEST_PY_BD}" != "" ]]; then |
53 | 53 | |
... | ... | @@ -64,9 +64,9 @@ |
64 | 64 | stage: world build |
65 | 65 | script: |
66 | 66 | - ret=0; |
67 | - ./tools/buildman/buildman -P -E arm -x aarch64 || ret=$?; | |
67 | + ./tools/buildman/buildman -o /tmp -P -E arm -x aarch64 || ret=$?; | |
68 | 68 | if [[ $ret -ne 0 && $ret -ne 129 ]]; then |
69 | - ./tools/buildman/buildman -sdeP; | |
69 | + ./tools/buildman/buildman -o /tmp -sdeP; | |
70 | 70 | exit $ret; |
71 | 71 | fi; |
72 | 72 | |
73 | 73 | |
... | ... | @@ -78,9 +78,9 @@ |
78 | 78 | - . /tmp/venv/bin/activate |
79 | 79 | - pip install pyelftools |
80 | 80 | - ret=0; |
81 | - ./tools/buildman/buildman -P -E aarch64 || ret=$?; | |
81 | + ./tools/buildman/buildman -o /tmp -P -E aarch64 || ret=$?; | |
82 | 82 | if [[ $ret -ne 0 && $ret -ne 129 ]]; then |
83 | - ./tools/buildman/buildman -sdeP; | |
83 | + ./tools/buildman/buildman -o /tmp -sdeP; | |
84 | 84 | exit $ret; |
85 | 85 | fi; |
86 | 86 | |
87 | 87 | |
... | ... | @@ -89,9 +89,9 @@ |
89 | 89 | stage: world build |
90 | 90 | script: |
91 | 91 | - ret=0; |
92 | - ./tools/buildman/buildman -P -E powerpc || ret=$?; | |
92 | + ./tools/buildman/buildman -o /tmp -P -E powerpc || ret=$?; | |
93 | 93 | if [[ $ret -ne 0 && $ret -ne 129 ]]; then |
94 | - ./tools/buildman/buildman -sdeP; | |
94 | + ./tools/buildman/buildman -o /tmp -sdeP; | |
95 | 95 | exit $ret; |
96 | 96 | fi; |
97 | 97 | |
98 | 98 | |
... | ... | @@ -100,9 +100,9 @@ |
100 | 100 | stage: world build |
101 | 101 | script: |
102 | 102 | - ret=0; |
103 | - ./tools/buildman/buildman -P -E -x arm,powerpc || ret=$?; | |
103 | + ./tools/buildman/buildman -o /tmp -P -E -x arm,powerpc || ret=$?; | |
104 | 104 | if [[ $ret -ne 0 && $ret -ne 129 ]]; then |
105 | - ./tools/buildman/buildman -sdeP; | |
105 | + ./tools/buildman/buildman -o /tmp -sdeP; | |
106 | 106 | exit $ret; |
107 | 107 | fi; |
108 | 108 | |
109 | 109 | |
... | ... | @@ -162,10 +162,10 @@ |
162 | 162 | virtualenv /tmp/venv; |
163 | 163 | . /tmp/venv/bin/activate; |
164 | 164 | pip install pyelftools; |
165 | - export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/sandbox_spl; | |
165 | + export UBOOT_TRAVIS_BUILD_DIR=/tmp/.bm-work/sandbox_spl; | |
166 | 166 | export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"; |
167 | 167 | export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}"; |
168 | - ./tools/buildman/buildman -P sandbox_spl; | |
168 | + ./tools/buildman/buildman -o /tmp -P sandbox_spl; | |
169 | 169 | ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test; |
170 | 170 | ./tools/buildman/buildman -t; |
171 | 171 | ./tools/dtoc/dtoc -t; |