mirror of
https://github.com/AuxXxilium/arc-v.git
synced 2024-11-23 23:11:05 +07:00
build: update more
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
6319bbc07f
commit
ae5009178b
@ -16,7 +16,7 @@ getModules "files/p3/modules"
|
||||
getConfigs "files/p3/configs"
|
||||
getPatches "files/p3/patches"
|
||||
|
||||
IMAGE_FILE="arc.img"
|
||||
IMAGE_FILE="arc-v.img"
|
||||
gzip -dc "files/grub.img.gz" >"${IMAGE_FILE}"
|
||||
fdisk -l "${IMAGE_FILE}"
|
||||
|
||||
@ -61,5 +61,5 @@ rmdir "/tmp/p3"
|
||||
|
||||
sudo losetup --detach ${LOOPX}
|
||||
|
||||
qemu-img convert -O vmdk arc.img arc-dyn.vmdk
|
||||
qemu-img convert -O vmdk -o adapter_type=lsilogic arc.img -o subformat=monolithicFlat arc.vmdk
|
||||
qemu-img convert -O vmdk arc-v.img arc-v-dyn.vmdk
|
||||
qemu-img convert -O vmdk -o adapter_type=lsilogic arc-v.img -o subformat=monolithicFlat arc-v.vmdk
|
@ -184,16 +184,16 @@ function getBuildroot() {
|
||||
local DEST_PATH="${2:-br}"
|
||||
|
||||
if [ "${1}" = "latest" ]; then
|
||||
TAG=$(curl -s "https://api.github.com/repos/AuxXxilium/arc-buildroot/releases" | jq -r ".[0].tag_name")
|
||||
TAG=$(curl -s "https://api.github.com/repos/AuxXxilium/arc-v-buildroot/releases" | jq -r ".[0].tag_name")
|
||||
fi
|
||||
[ ! -d "${DEST_PATH}" ] && mkdir -p "${DEST_PATH}"
|
||||
rm -rf "${DEST_PATH}/bzImage-arc"
|
||||
STATUS=$(curl -w "%{http_code}" -L "https://github.com/AuxXxilium/arc-buildroot/releases/download/${TAG}/bzImage" -o "${DEST_PATH}/bzImage-arc")
|
||||
STATUS=$(curl -w "%{http_code}" -L "https://github.com/AuxXxilium/arc-v-buildroot/releases/download/${TAG}/bzImage" -o "${DEST_PATH}/bzImage-arc")
|
||||
echo "TAG=${TAG}; Status=${STATUS}"
|
||||
[ ${STATUS} -ne 200 ] && exit 1
|
||||
|
||||
rm -rf "${DEST_PATH}/initrd-arc"
|
||||
STATUS=$(curl -w "%{http_code}" -L "https://github.com/AuxXxilium/arc-buildroot/releases/download/${TAG}/rootfs.cpio.xz" -o "${DEST_PATH}/initrd-arc")
|
||||
STATUS=$(curl -w "%{http_code}" -L "https://github.com/AuxXxilium/arc-v-buildroot/releases/download/${TAG}/rootfs.cpio.xz" -o "${DEST_PATH}/initrd-arc")
|
||||
echo "TAG=${TAG}; Status=${STATUS}"
|
||||
[ ${STATUS} -ne 200 ] && exit 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user