mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 09:15:23 +01:00
Implement kernel bootstrap up to building Linux.
This commit is contained in:
parent
5ea8dd3136
commit
ecf99ab08b
52 changed files with 4898 additions and 139 deletions
7
sysa/tcc-0.9.26/simple-patches/addback-fileopen.after
Normal file
7
sysa/tcc-0.9.26/simple-patches/addback-fileopen.after
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
if ((fh = fopen(argv[i_lib], "wb")) == NULL)
|
||||
{
|
||||
fprintf(stderr, "tcc: ar: can't open file %s \n", argv[i_lib]);
|
||||
goto the_end;
|
||||
}
|
||||
|
||||
// write header
|
||||
1
sysa/tcc-0.9.26/simple-patches/addback-fileopen.before
Normal file
1
sysa/tcc-0.9.26/simple-patches/addback-fileopen.before
Normal file
|
|
@ -0,0 +1 @@
|
|||
// write header
|
||||
2
sysa/tcc-0.9.26/simple-patches/remove-fileopen.after
Normal file
2
sysa/tcc-0.9.26/simple-patches/remove-fileopen.after
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
if (ret == 1)
|
||||
return ar_usage(ret);
|
||||
8
sysa/tcc-0.9.26/simple-patches/remove-fileopen.before
Normal file
8
sysa/tcc-0.9.26/simple-patches/remove-fileopen.before
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
if (ret == 1)
|
||||
return ar_usage(ret);
|
||||
|
||||
if ((fh = fopen(argv[i_lib], "wb")) == NULL)
|
||||
{
|
||||
fprintf(stderr, "tcc: ar: can't open file %s \n", argv[i_lib]);
|
||||
goto the_end;
|
||||
}
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
2313ba8ce505e08cdb2ce480d3195c3f66a07c0d1a4ce85570e9017f59cc0d4f /usr/bin/mes-tcc
|
||||
01a56f6ae93d168d8f0122558985b14ab35e36b85934dec8bbf988faabc6db12 /usr/bin/boot0-tcc
|
||||
07f9ad107c2df7f6131717d3e3de8eeceb25767bb28c7fd2f39a18cf8fbaf016 /usr/bin/boot1-tcc
|
||||
867e4aafd746de4aea5efeb38b6f878e4cc9440a403c42e4739954d9f85a8cc8 /usr/bin/boot2-tcc
|
||||
3bb6782f6033946d70d2abb7b4a166ecafe739cbb0201f56e3ae121d003f5e1a /usr/bin/boot3-tcc
|
||||
bce041b2af0e1bd580f269216e46d7d011ddfccd6dcc464a62eef9da1234b0a5 /usr/bin/boot4-tcc
|
||||
460211eed1fb086bbb3327a26f56d638029bc2d7b313e06071c26e38fcf06b7f /usr/bin/tcc
|
||||
7897c2ba182e92765856a9e3ddd2bdfcd69988b3ddc45b3ef932dc3ec041041a /usr/bin/mes-tcc
|
||||
64bdb36f0048744957454b6ad186d37db4a7fcc392f67bf052b9bc7ec033b963 /usr/bin/boot0-tcc
|
||||
18af79e0e3c4bfeaced2b0867561bc9fd370cbfcc78860de5a70926374ba7c53 /usr/bin/boot1-tcc
|
||||
d6fa0c2006f6c8fefb4f3750fade14aa884670637098857d06aef3c7a9bd02d8 /usr/bin/boot2-tcc
|
||||
93b2c1c567f5938435fbe6c0115276f6073bd46a0a92791b164ca2752180caf5 /usr/bin/boot3-tcc
|
||||
a40305e6d2acb3dc64dbc80f64952431f4728eeff03f6e7c91c737cbf6e1bdda /usr/bin/boot4-tcc
|
||||
c56d99e284dfecae047e792b049c0cee022452f13262d6b3c869ec1c9935b276 /usr/bin/tcc
|
||||
96f93f2d281ee6996767b25fbff4441e8335e7eeaeab060c1d4b698366b277c9 /usr/lib/mes/libc.a
|
||||
12c07ae103e7e3b390150a79e5c600d88de14e9bb73a066f6342582729ef5a3f /usr/lib/mes/libgetopt.a
|
||||
d1168ee9b528e39f0b40e8d51fb7fa3619c4a5ee928137f7faf6d0879b0916b0 /usr/lib/mes/crt1.o
|
||||
|
|
|
|||
|
|
@ -31,6 +31,11 @@ cd ..
|
|||
|
||||
cd build
|
||||
untar --file ../src/${TCC_TAR}.tar
|
||||
/x86/bin/simple-patch /sysa/tcc-0.9.26/build/tcc-0.9.26-1136-g5bba73cc/tcctools.c \
|
||||
/sysa/tcc-0.9.26/simple-patches/remove-fileopen.before /sysa/tcc-0.9.26/simple-patches/remove-fileopen.after
|
||||
/x86/bin/simple-patch /sysa/tcc-0.9.26/build/tcc-0.9.26-1136-g5bba73cc/tcctools.c \
|
||||
/sysa/tcc-0.9.26/simple-patches/addback-fileopen.before /sysa/tcc-0.9.26/simple-patches/addback-fileopen.after
|
||||
|
||||
untar --non-strict --file ../src/${MES_PKG}.tar
|
||||
|
||||
# Create config.h
|
||||
|
|
@ -60,6 +65,7 @@ ${MES} --no-auto-compile -e main ${bindir}/mescc.scm -- \
|
|||
-D ONE_SOURCE=1 \
|
||||
tcc.c
|
||||
${MES} --no-auto-compile -e main ${bindir}/mescc.scm -- \
|
||||
--base-address 0x08048000 \
|
||||
-o mes-tcc \
|
||||
-L ${libdir} \
|
||||
tcc.s \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue