Skip to content

Commit

Permalink
Merge pull request #1627 from ghaerr/build
Browse files Browse the repository at this point in the history
[build] Update build scripts
  • Loading branch information
ghaerr authored Jul 28, 2023
2 parents 438dc51 + 58167e4 commit f4363cd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

# This build script is called in main.yml by GitHub Continuous Integration
# Full build (including the cross tool chain)

# Arguments:
Expand Down
15 changes: 14 additions & 1 deletion buildimages.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#
# Build all ELKS images
# This script is used to build all ELKS images outside Github CI

cleanup()
{
make kclean
rm -f bootblocks/*.o
rm -f elkscmd/sys_utils/clock.o
rm -f elkscmd/sys_utils/ps.o
rm -f elkscmd/sys_utils/meminfo.o
rm -f elkscmd/basic/*.o
rm -f elkscmd/nano-X/*/*.o
}

# build PC-98 versions
Expand All @@ -23,6 +26,15 @@ build_pc98()
mv image/fd1440.img image/fd1440-pc98.img
}

# build 8018X image
build_8018x()
{
cleanup
cp 8018x.config .config
make
mv image/romfs.bin image/romfs-8018x.bin
}

# build IBM PC versions
build_ibm()
{
Expand All @@ -38,6 +50,7 @@ build_ibm()
make clean
build_ibm
build_pc98
build_8018x

cp ibmpc-1440.config .config
cleanup
Expand Down

0 comments on commit f4363cd

Please sign in to comment.