Skip to content

feat(nutshell): build linux images with nutshell_defconfig - #77

Merged
poemonsense merged 1 commit into
mainfrom
circle-patch3
Sep 21, 2026
Merged

poemonsense merged 1 commit into
mainfrom
circle-patch3

Conversation

@good-circle

Copy link
Copy Markdown
Contributor

DEFAULT_DTB=nutshell or nutshell-* now selects nutshell_defconfig (RV64IMAC/lp64) in the same build/buildroot tree as XiangShan's nemu_defconfig. A stamp records which defconfig last configured that tree so switching rebuilds the SDK. Bootlin only ships lp64d, so the NutShell config builds gcc inside Buildroot and a linux.config fragment turns off FPU, V, and KVM.

SPEC2006 follows the same DEFAULT_DTB switch and defaults to riscv_gcc16_rv64imac_lp64.cfg.

Comment thread br2-external/configs/nemu_defconfig Outdated
@@ -1,3 +1,4 @@
# XiangShan/NEMU. NutShell uses nutshell_defconfig.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should rename this file to xiangshan_defconfig and add nutshell_defconfig

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, fixed

Rename nemu_defconfig to xiangshan_defconfig. DEFAULT_DTB=nutshell
or nutshell-* selects nutshell_defconfig (RV64IMAC/lp64); other
names keep xiangshan_defconfig.

A stamp records which defconfig last configured the Buildroot tree
so switching rebuilds the SDK. Bootlin only ships lp64d, so the
NutShell config builds gcc inside Buildroot and a linux.config
fragment turns off FPU, V, and KVM.

SPEC2006 follows the same DEFAULT_DTB switch and defaults to
riscv_gcc16_rv64imac_lp64.cfg.
@poemonsense
poemonsense merged commit 510c807 into main Sep 21, 2026
2 checks passed
@poemonsense
poemonsense deleted the circle-patch3 branch September 21, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants