Skip to content

Commit 5dfce92

Browse files
committed
chore: add nemu and dramsim build ci flow
1 parent 67964ff commit 5dfce92

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/unit-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ jobs:
1616
chmod +x scripts/install.sh
1717
make install
1818
chmod +x scripts/setup.sh
19-
make setup
19+
make setup
20+
make nemuBuild
21+
make dramsim3Build
22+
# make CHIP_TARGET=tc_l2 unit-test

rtl/scripts/setup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ configNemu() {
167167
# change the sim memory from 8G to 256MB
168168
# need to enter 'make menuconfig' and
169169
# modify [Memory Configuration]->[Memory size] to '0x10000000' manually
170-
# sed -i 's/^\(CONFIG_MSIZE=0x\)\(.*\)/\110000000/' .config
170+
sed -i 's/^\(CONFIG_MSIZE=0x\)\(.*\)/\110000000/' .config
171+
# NOTE: you need to set the 'NEMU_HOME' and 'NOOP_HOME' in sh config file!
172+
# because the compliation only reads sh env vars
171173

172174
cd ${ROOT_PATH}
173175
}

0 commit comments

Comments
 (0)