Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use stable buildroot-2024.05 with external tree #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
buildroot/
buildroot.tar.gz

hello_linux/hello_linux.gdb
hello_linux/hello_linux.S
hello_linux/hello_linux

hello_linux/pi
hello_linux/pi.gdb

mini-rv32ima/mini-rv32ima
mini-rv32ima/mini-rv32ima.tiny
mini-rv32ima/bintoh*

packages/coremark/coremark*
packages/coremark/*.zip
25 changes: 12 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@ all : everything

DTC:=buildroot/output/host/bin/dtc

buildroot :
git clone https://github.com/cnlohr/buildroot --recurse-submodules --depth 1

toolchain : buildroot
cp -a configs/custom_kernel_config buildroot/kernel_config
cp -a configs/buildroot_config buildroot/.config
cp -a configs/busybox_config buildroot/busybox_config
cp -a configs/uclibc_config buildroot/uclibc_config
cp -a configs/uclibc_config buildroot/uclibc_config_extra
true || cp -a configs/rootfsoverlay/* buildroot/output/target/
buildroot.tar.gz :
wget https://buildroot.org/downloads/buildroot-2024.05.tar.gz
mv buildroot-2024.05.tar.gz buildroot.tar.gz

buildroot : buildroot.tar.gz
tar -xvf buildroot.tar.gz
mv buildroot-2024.05 buildroot

buildroot/.config : buildroot
make -C buildroot BR2_EXTERNAL=../buildroot_overlay/ minirv32ima_defconfig

toolchain : buildroot/.config
make -C buildroot

everything : toolchain
make -C hello_linux deploy
#make -C packages/duktapetest deploy
make -C packages/coremark deploy
cp -a configs/rootfsoverlay/* buildroot/output/target/
make -C buildroot
make -C mini-rv32ima testkern

Expand Down Expand Up @@ -49,8 +50,6 @@ test_with_qemu :
# cp riscv_Kconfig buildroot-2022.02.6/output/build/linux-5.15.67/arch/riscv/
# make -C buildroot-2022.02.6

configs/minimal.dtb : configs/minimal.dts $(DTC)
$(DTC) -I dts -O dtb -o $@ $< -S 2048

# Trick for extracting the DTB from
dtbextract : $(DTC)
Expand Down
Empty file added buildroot_overlay/Config.in
Empty file.
Loading