2010-12-29 04:55:33     How to make the patch files work when porting lib into uClinux-dist ?

Document created by Aaronwu Employee on Aug 25, 2013
Version 1Show Document
  • View in full screen mode

2010-12-29 04:55:33     How to make the patch files work when porting lib into uClinux-dist ?

Zechao Wang (AFGHANISTAN)

Message: 97056   

 

Hello !

 

The "v4l-test" and its dependence package "CUnit" are added into my uClinux-dist, and have been built pass (after do some change).

 

But if i want to follow the lib directory structure such as below:

 

$ ls -l uClinux-dist/lib/libcunit

    CUnit-2.1-2/

    Makefile

    patches/

 

Then the patch files are not used at all when building.

 

The doc:   docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:libs:adding_libraries have say nothing about patch.

 

Can some one tell me how  to make the patch files works ?

TranslateQuoteReplyEditDelete

 

 

2010-12-29 05:16:13     Re: How to make the patch files work when porting lib into uClinux-dist ?

Zechao Wang (AFGHANISTAN)

Message: 97058   

 

 

$ ls -l uClinux-dist/lib/libcunit

    CUnit-2.1-2/

    Makefile

    patches/

 

---------------------------

 

In my understanding, "CUnit-2.1-2" is the original source dir, and can not be modified, all changes shoule be included in patches/*.patch, but just don't know how does the patches are used.

 

Or my understanding is wrong ?

TranslateQuoteReplyEditDelete

 

 

2010-12-29 07:00:51     Re: How to make the patch files work when porting lib into uClinux-dist ?

Zechao Wang (AFGHANISTAN)

Message: 97059   

 

OK, it seems my understanding is wrong!

 

Changes are directly patched to source dir "CUnit-2.1-2/", and the "patches"  dir just locate the diffs.

 

------------------------------------

 

$ ls -l uClinux-dist/lib/libcunit

    CUnit-2.1-2/

    Makefile

    patches/

Attachments

    Outcomes