Skip to contentSkip to conversation

patch apply for .bb file

yocto NIKHIL PATIL 2 participants 3 messages Nov 28, 2020 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi ,
If anyone know please help.

Quoted 47 lines · NIKHIL PATIL via lists.yoctoproject.org

Hi team ,
We are tring to apply to patch to default .bb file. means in
gpsd_3.17.bb file we did some changes but after taking patch we are not able to apply it .

* steps followd :-*
1) git status
2) git
diff yocto_build/meta-openembedded/meta-oe/recipes-navigation/gpsd/ gpsd_3.17.bb > 0001_add_line_in_gpsd.patch
3) git
checkout yocto_build/meta-openembedded/meta-oe/recipes-navigation/gpsd/ gpsd_3.17.bb

after these i applied gpsd patch
in /yocto_build/meta-intel-leafhill/recipes-kernel/linux/linux-intel/leafhill.scc
file but after appling getting following errors .

* ERRORS :-*
[INFO]: Context reduced git-am of
.kernel-meta//patches//patches/0001_add_line_in_gpsd.patch with "git am" did not work, trying "apply".
| error: yocto_build/meta-openembedded/meta-oe/recipes-navigation/gpsd/ gpsd_3.17.bb: does not exist in index
| [ERROR]: Application of .kernel-meta//patches//patches/0001_add_line_in_gpsd.patch failed.

|          Patch needs to be refreshed. Sample resolution script:
|              .git/rebase-apply/resolve_rejects
| ERROR: Could not apply patches for intel-corei7-64.
| ERROR: Patch failures can be resolved in the linux source directory

/data/nikhil/inti_dmsv/yocto_build/build/tmp/work-shared/intel-corei7-64/kernel-source)

* douts :-*
1) Can we apply a patch to default code means (files in meta or
files( .bb ) in meta-intel folder, etc) ? because we are able to apply a patch for kernel code (driver file ) , but for .bb file patch appling we are facing issue .

2) how to apply a patch to default .bb file in meta layers ? can
u please tell procedure .

thanks in advance .

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

hi ,
Is there any way to apply patches from one meta layer to another meta
layer ?

Quoted 56 lines · NIKHIL PATIL via lists.yoctoproject.org

Hi ,
If anyone know please help.

Quoted 47 lines · NIKHIL PATIL via lists.yoctoproject.org

Hi team ,
We are tring to apply to patch to default .bb file. means in
gpsd_3.17.bb file we did some changes but after taking patch we are not able to apply it .

* steps followd :-*
1) git status
2) git
diff yocto_build/meta-openembedded/meta-oe/recipes-navigation/gpsd/ gpsd_3.17.bb > 0001_add_line_in_gpsd.patch
3) git
checkout yocto_build/meta-openembedded/meta-oe/recipes-navigation/gpsd/ gpsd_3.17.bb

after these i applied gpsd patch
in /yocto_build/meta-intel-leafhill/recipes-kernel/linux/linux-intel/leafhill.scc
file but after appling getting following errors .

* ERRORS :-*
[INFO]: Context reduced git-am of
.kernel-meta//patches//patches/0001_add_line_in_gpsd.patch with "git am" did not work, trying "apply".
| error: yocto_build/meta-openembedded/meta-oe/recipes-navigation/gpsd/ gpsd_3.17.bb: does not exist in index
| [ERROR]: Application of .kernel-meta//patches//patches/0001_add_line_in_gpsd.patch failed.

|          Patch needs to be refreshed. Sample resolution script:
|              .git/rebase-apply/resolve_rejects
| ERROR: Could not apply patches for intel-corei7-64.
| ERROR: Patch failures can be resolved in the linux source directory

/data/nikhil/inti_dmsv/yocto_build/build/tmp/work-shared/intel-corei7-64/kernel-source)

* douts :-*
1) Can we apply a patch to default code means (files in meta or
files( .bb ) in meta-intel folder, etc) ? because we are able to apply a patch for kernel code (driver file ) , but for .bb file patch appling we are facing issue .

2) how to apply a patch to default .bb file in meta layers ?
can u please tell procedure .

thanks in advance .

#4 lore raw

Hi,

Please stop spamming. It encourages people not to answer you.

You're looking for bbappends.

Quentin

Quoted 76 lines · NIKHIL PATIL

hi ,
Is there any way to apply patches from one meta layer to another meta
layer ?

Quoted 4 lines · NIKHIL PATIL via lists.yoctoproject.org

Hi ,
If anyone know please help.

On Sat, Nov 28, 2020 at 12:12 AM NIKHIL PATIL via

lists.yoctoproject.org

Quoted 5 lines
Quoted 3 lines · <[email protected]> wrote:

Hi team ,
We are tring to apply to patch to default .bb file. means in
gpsd_3.17.bb file we did some changes but after taking patch we are

not

Quoted 9 lines
Quoted 9 lines

able to apply it .

* steps followd :-*
1) git status
2) git
diff yocto_build/meta-openembedded/meta-oe/recipes-navigation/gpsd/ gpsd_3.17.bb > 0001_add_line_in_gpsd.patch
3) git
checkout

yocto_build/meta-openembedded/meta-oe/recipes-navigation/gpsd/

Quoted 4 lines
Quoted 4 lines

gpsd_3.17.bb

after these i applied gpsd patch
in

/yocto_build/meta-intel-leafhill/recipes-kernel/linux/linux-intel/leafhill.scc

Quoted 5 lines
Quoted 5 lines

file but after appling getting following errors .

* ERRORS :-*
[INFO]: Context reduced git-am of
.kernel-meta//patches//patches/0001_add_line_in_gpsd.patch with "git

am"

Quoted 2 lines
Quoted 2 lines

did not work, trying "apply".
| error:

yocto_build/meta-openembedded/meta-oe/recipes-navigation/gpsd/

Quoted 7 lines
Quoted 7 lines

gpsd_3.17.bb: does not exist in index
| [ERROR]: Application of .kernel-meta//patches//patches/0001_add_line_in_gpsd.patch failed.

|          Patch needs to be refreshed. Sample resolution script:
|              .git/rebase-apply/resolve_rejects
| ERROR: Could not apply patches for intel-corei7-64.
| ERROR: Patch failures can be resolved in the linux source

directory

Quoted 1 line
Quoted 1 line

/data/nikhil/inti_dmsv/yocto_build/build/tmp/work-shared/intel-corei7-64/kernel-source)

Quoted 3 lines
Quoted 3 lines

* douts :-*
1) Can we apply a patch to default code means (files in meta

or

Quoted 1 line
Quoted 1 line

files( .bb ) in meta-intel folder, etc) ? because we are able to

apply a

Quoted 1 line
Quoted 1 line

patch for kernel code (driver file ) , but for .bb file patch

appling we

Quoted 3 lines
Quoted 3 lines

are facing issue .

2) how to apply a patch to default .bb file in meta layers

?

Quoted 11 lines
Quoted 8 lines

can u please tell procedure .

thanks in advance .

Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.