This repository was archived by the owner on Feb 8, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,6 @@ bin_PROGRAMS=hyper_daemon
2
2
hyper_daemon_SOURCES =hyper_daemon.c ../src/net.c
3
3
all-local :
4
4
bash ./make-initrd.sh
5
+
6
+ cbfs-local :
7
+ bash ./make-initrd.sh cbfs
Original file line number Diff line number Diff line change 19
19
done
20
20
done
21
21
cd ./root && find . | cpio -H newc -o | gzip -9 > ../hyper-initrd.img
22
+
23
+
24
+ if [ " $1 " != " cbfs" ]; then
25
+ exit 0
26
+ fi
27
+
28
+ cd ../
29
+
30
+ echo " build cbfs"
31
+ rm -rf .cbfs
32
+ rm -rf cbfs.rom
33
+
34
+ mkdir .cbfs
35
+ dd if=/dev/zero of=.cbfs/boot.bin bs=4096 count=1
36
+ cbfstool .cbfs/cbfs.rom create -s 4096k -B .cbfs/boot.bin -m x86 0x1000
37
+ cbfstool .cbfs/cbfs.rom add -f kernel -n vmlinuz -t raw
38
+ cbfstool .cbfs/cbfs.rom add -f hyper-initrd.img -n initrd -t raw
39
+ cp .cbfs/cbfs.rom ./
40
+ rm -rf .cbfs
Original file line number Diff line number Diff line change 4
4
AC_PREREQ ( [ 2.69] )
5
5
AC_INIT ( [ hyperstart] , [ 0.1] , [ www.hyper.sh] )
6
6
AM_INIT_AUTOMAKE ( [ -Wall -Werror foreign subdir-objects] )
7
+ AM_EXTRA_RECURSIVE_TARGETS([ cbfs] )
7
8
AC_CONFIG_SRCDIR ( [ src/init.c] )
8
9
AC_CONFIG_HEADERS ( [ config.h] )
9
10
You can’t perform that action at this time.
0 commit comments