Skip to content
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
52 changes: 48 additions & 4 deletions .github/workflows/h2_reg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libncurses5

- name: Cache Hexagon SDK
id: cache-sdk
uses: actions/cache@v5
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: /opt/hexagon-sdk
key: hexagon-sdk-v6.4.0.2
Expand All @@ -43,7 +43,51 @@ jobs:
run: |
make -O USE_PKW=0 NULL_ANGEL_TRAP=1 testall

- name: Upload test suite artifacts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: test-results
path: |
artifacts/test_report.html
artifacts/test.out
artifacts/**/test_results.json
artifacts/**/test_report.html
artifacts/**/test.out
if-no-files-found: warn

- name: Build loadlinux
run: |
make -O USE_PKW=0 NULL_ANGEL_TRAP=1 ARCHV="$ARCHV" -C linux loadlinux

- name: Package test suite archive
if: always()
run: |
tar --create --xz -h \
--exclude='*.o' --exclude='*.d' --exclude='*.log' \
--file artifacts/test-suite.tar.xz \
--transform 's|^|test-suite/|' \
artifacts/v*/*/build/tests \
artifacts/v*/*/install/bin/booter \
scripts/timer_v*.cfg \
scripts/devsim_v*.cfg \
linux/loadlinux

- name: Upload test suite archive
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: test-suite
path: artifacts/test-suite.tar.xz
if-no-files-found: error

- name: Upload loadlinux artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: loadlinux
path: linux/loadlinux
if-no-files-found: error

- name: Coverage build and verify
run: |
make -O USE_PKW=0 NULL_ANGEL_TRAP=1 ARCHV="$ARCHV" TARGET=ref_cov cov

make -O USE_PKW=0 NULL_ANGEL_TRAP=1 ARCHV="$ARCHV" TARGET=ref_cov cov
4 changes: 3 additions & 1 deletion linux/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ OPTIMIZE=-O2

BOOTVM_PROG := loadlinux

CFLAGS = -Wall -G0 -g $(OPTIMIZE) -mv${TOOLARCH} -DARCHV=${ARCHV} -I. -Iinc -Isrc -I$(INSTALLPATH)/include -I$(KERNELPATH)/include -L. -L$(INSTALLPATH)/lib $(EXTRA_CFLAGS)
CFLAGS = -Wall -G0 -g $(OPTIMIZE) -mv${TOOLARCH} -DARCHV=${ARCHV} -I. -Iinc -Isrc -I$(INSTALLPATH)/include -I$(KERNEL_BUILD_DIR)/include -L. -L$(INSTALLPATH)/lib $(EXTRA_CFLAGS)
LDFLAGS = -L$(INSTALLPATH)/lib -moslib=h2

include ../scripts/Makefile.inc.config
include ../scripts/Makefile.inc.opensource
include ../scripts/Makefile.inc.bootvm

KERNEL_BUILD_DIR := $(patsubst %/install,%/build/kernel,$(INSTALLPATH))


ifeq ($(LINUX_LINK_ADDR),)
#LINUX_LINK_ADDR = $(H2K_GUEST_START)
Expand Down
Loading