|
|
5 سال پیش | |
|---|---|---|
| .. | ||
| LICENSE | 5 سال پیش | |
| README.md | 5 سال پیش | |
| common-functions-source.sh | 5 سال پیش | |
| container-functions-source.sh | 5 سال پیش | |
| host-functions-source.sh | 5 سال پیش | |
| templates.sh | 5 سال پیش | |
Common script used in other build scripts.
host-functions-source.sh: to be included with source in the host build scriptcontainer-functions-source.sh: to be included with source in the container build scriptDeprecated:
builder-helper.sh: used in the first generation of build scripts.The code used to download and extract archives can also be used
to post-patch the downloaded files. For this a patch file must be
placed in the patches folder, and the name must be passed as the
third param to extract().
The code to apply the patch (common-functions-source.sh:extract()) does
the following:
$ cd sources/binutils
$ patch -p0 < "binutils-2.31.patch"
The patch is applied from the library source folder, so it must be created with the library relative path.
For example, to create a binutils patch, use:
$ cd sources/binutils
$ cp bfd/ihex.c bfd/ihex-patched.c
$ vi bfd/ihex-patched.c
$ diff -u bfd/ihex.c bfd/ihex-patched.c > patches/binutils-2.31.patch
There may also be git patches; they are applied with git apply file.git-patch.
To create a patch with the uncommitted changes:
$ git diff > file.git-patch
Links: