mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-29 07:53:44 +02:00
manibuilder/anita: Fix ccache image for non-x86
There is no disk label `a` on non-x86 (at least not on Sparc64). Instead, we use the whole disk which is `d` on x86 and `c` else- where. `newfs` and `fsck` needs a little help in this scenario. Change-Id: Ib298d9cbf5d49ff38a898f4ce3ad54bb6af98d86 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52482 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
928b478d75
commit
08dc3e55fe
@ -36,15 +36,19 @@ RUN cd && anita --persist --run \
|
|||||||
|
|
||||||
RUN cd && dd if=/dev/zero bs=1M count=64 of=cache.img && \
|
RUN cd && dd if=/dev/zero bs=1M count=64 of=cache.img && \
|
||||||
anita --vmm-args '-hdb cache.img' --persist --run \
|
anita --vmm-args '-hdb cache.img' --persist --run \
|
||||||
"echo fdisk -0 -s 169/63/131009 -f -u wd1 && \
|
"if [ \$(uname -m) = i386 -o \$(uname -m) = amd64 ]; then \
|
||||||
newfs wd1a && \
|
bdev=wd1d; \
|
||||||
|
else \
|
||||||
|
bdev=wd1c; \
|
||||||
|
fi; \
|
||||||
|
newfs -I \${bdev} && \
|
||||||
mkdir .ccache && \
|
mkdir .ccache && \
|
||||||
mount /dev/wd1a .ccache && \
|
mount /dev/\${bdev} .ccache && \
|
||||||
ccache -M 60M && \
|
ccache -M 60M && \
|
||||||
umount .ccache && \
|
umount .ccache && \
|
||||||
echo 'manitest() {' >>init && \
|
echo 'manitest() {' >>init && \
|
||||||
echo ' fsck -y /dev/wd1a' >>init && \
|
echo ' fsck -y -t ffs /dev/'\${bdev} >>init && \
|
||||||
echo ' mount /dev/wd1a ~/.ccache' >>init && \
|
echo ' mount /dev/'\${bdev}' ~/.ccache' >>init && \
|
||||||
echo ' (cd ~/flashrom && eval \" \$*\")' >>init && \
|
echo ' (cd ~/flashrom && eval \" \$*\")' >>init && \
|
||||||
echo ' ret=\$?' >>init && \
|
echo ' ret=\$?' >>init && \
|
||||||
echo ' umount ~/.ccache' >>init && \
|
echo ' umount ~/.ccache' >>init && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user