Hi Folks,
I want to patch glibc with some security patches.
I would like to know the procedure to patch and rebuild the toolchain.
Can you guys please help??
Thanks,
Mohan.
Hi,
Please refer to below:
1. $ cd <yocto_install_path>/build_<machine>_release
2. $ bitbake -c cleansstate <package-name>
3. $ cd <RECIPE_FOLDER>
NOTE
Use bitbake <package-name> -e | grep ^FILE_DIR to get
the value of <RECIPE_FOLDER>
4. $ mkdir -p <RECIPE_FOLDER>/files
5. Copy patch into <RECIPE_FOLDER>/files
6. Modify <BB_FILE> and add follow content in package-name-<version>.bb file
SRC_URI += "file://<name-of-patch1> \
file://<name-of-patch2> \
... \
file://<name-of-patchn>"
7. Rebuild this package:
$ bitbake <package-name>
This is listed in Section 2.1.6 Packages of SDK document:
Freescale Technical Information Center
Is this what you want?
Have a great day,
Lunmin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------