Skip to content

Commit

Permalink
Add minivm build to rootfs
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Cain <[email protected]>
  • Loading branch information
androm3da committed Sep 18, 2024
1 parent ba28972 commit e45a945
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ ENV MAKE_TARBALLS 1

ENV LLVM_SRC_URL https://github.com/llvm/llvm-project/archive/llvmorg-${VER}.tar.gz
ENV MUSL_SRC_URL https://github.com/quic/musl/archive/d125203fcb134febcde6ca32181554560b67c790.tar.gz
ENV HEXMVM_SRC_URL https://github.com/quic/hexagonMVM/archive/v0.2.0.tar.gz
ENV LINUX_SRC_URL https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.7.11.tar.xz

#ENV PYTHON_SRC_URL https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz
Expand Down
12 changes: 12 additions & 0 deletions build-rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,17 @@ build_dropbear() {
echo FIXME TODO
}

build_minivm() {
cd ${BASE}
mkdir -p obj_minivm
cd obj_minivm
make --directory=../hexagonMVM \
ARCH=hexagon-unknown-linux-musl- \
prefix=${ROOTFS}/boot \
bindir='' \
install
}

build_kernel() {
cd ${BASE}
mkdir -p obj_linux
Expand Down Expand Up @@ -176,6 +187,7 @@ cp -ra ${HEX_SYSROOT}/usr ${ROOTFS}/

get_src_tarballs

build_minivm
build_kernel
build_busybox

Expand Down
1 change: 1 addition & 0 deletions get-src-repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ git clone -q https://git.busybox.net/busybox/ &


git clone -q --branch=hexagon https://github.com/quic/musl &
git clone -q https://github.com/quic/hexagonMVM &
git clone -q https://github.com/qemu/qemu &

wait
Expand Down
8 changes: 8 additions & 0 deletions get-src-tarballs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ get_src_tarballs() {
git log -3 HEAD >> ${MANIFEST_DIR}/qemu.txt
cd -

wget --quiet ${HEXMVM_SRC_URL} -O hexagonMVM.tar.xz
mkdir hexagonMVM
cd hexagonMVM
tar xf ../hexagonMVM.tar.xz --strip-components=1
rm ../hexagonMVM.tar.xz
echo ${HEXMVM_SRC_URL} > ${MANIFEST_DIR}/hexagonMVM.txt
cd -

wget --quiet ${MUSL_SRC_URL} -O musl.tar.xz
mkdir musl
cd musl
Expand Down

0 comments on commit e45a945

Please sign in to comment.