mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 17:25:24 +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.27/simple-patches/addback-fileopen.after
Normal file
7
sysa/tcc-0.9.27/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.27/simple-patches/addback-fileopen.before
Normal file
1
sysa/tcc-0.9.27/simple-patches/addback-fileopen.before
Normal file
|
|
@ -0,0 +1 @@
|
|||
// write header
|
||||
3
sysa/tcc-0.9.27/simple-patches/fiwix-paddr.after
Normal file
3
sysa/tcc-0.9.27/simple-patches/fiwix-paddr.after
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ph->p_paddr = ph->p_vaddr;
|
||||
if (ph->p_paddr >= 0xC0000000)
|
||||
ph->p_paddr = ph->p_paddr - 0xC0000000;
|
||||
1
sysa/tcc-0.9.27/simple-patches/fiwix-paddr.before
Normal file
1
sysa/tcc-0.9.27/simple-patches/fiwix-paddr.before
Normal file
|
|
@ -0,0 +1 @@
|
|||
ph->p_paddr = ph->p_vaddr;
|
||||
2
sysa/tcc-0.9.27/simple-patches/remove-fileopen.after
Normal file
2
sysa/tcc-0.9.27/simple-patches/remove-fileopen.after
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
if (ret == 1)
|
||||
return ar_usage(ret);
|
||||
8
sysa/tcc-0.9.27/simple-patches/remove-fileopen.before
Normal file
8
sysa/tcc-0.9.27/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 +1 @@
|
|||
c75b7969af5d84c2d6f33674b8372ca3450ec8632ba1523cf8858e124acd667f /usr/bin/tcc
|
||||
5cd0428fdcb9dc579cdf496a4fd974c4d2a941f76f2ce2049a1c2ff477f64002 /usr/bin/tcc
|
||||
|
|
|
|||
|
|
@ -20,6 +20,12 @@ cd ..
|
|||
|
||||
cd build
|
||||
untar --file ../src/${pkg}.tar
|
||||
/x86/bin/simple-patch /sysa/tcc-0.9.27/build/tcc-0.9.27/tcctools.c \
|
||||
/sysa/tcc-0.9.27/simple-patches/remove-fileopen.before /sysa/tcc-0.9.27/simple-patches/remove-fileopen.after
|
||||
/x86/bin/simple-patch /sysa/tcc-0.9.27/build/tcc-0.9.27/tcctools.c \
|
||||
/sysa/tcc-0.9.27/simple-patches/addback-fileopen.before /sysa/tcc-0.9.27/simple-patches/addback-fileopen.after
|
||||
/x86/bin/simple-patch /sysa/tcc-0.9.27/build/tcc-0.9.27/tccelf.c \
|
||||
/sysa/tcc-0.9.27/simple-patches/fiwix-paddr.before /sysa/tcc-0.9.27/simple-patches/fiwix-paddr.after
|
||||
untar --non-strict --file ../src/${MES_PKG}.tar
|
||||
cd ${pkg}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue