How to rebuild fsl-toolchain??

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to rebuild fsl-toolchain??

950 Views
mohankumarkanne
Contributor I

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.

Tags (1)
0 Kudos
1 Reply

632 Views
lunminliang
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos