how i can call a diff file in enigma2.bb ??

Wir haben aktuell ein Problem mit dem Board und arbeiten an der Lösung...
  • HI


    As i know that i have to make a diff file if i want to change things but is there any other way rather than the diff file ??


    or if it was the diff file ok when i create for example the file name is menu.xml.patch


    how i can call it in enigma2.bb so it can take chages effect ??


    if there is any other way please tell me

  • folder xml.orig = original xml
    folder xml = your xml


    than with shell:


    Code
    diff -Naur xml.orig xml >myxml.diff


    put this myxml.diff to the folder in oe:


    Code
    /openembedded/packages/enigma2/enigma2


    and put this line in the enigma2.bb:


    Code
    SRC_URI = "git://git.opendreambox.org/git/enigma2.git;protocol=git;branch=${BRANCH};tag=${SRCREV} \
            file://myxml.difff;patch=1;pnum=1 \
            file://enigma2.sh"


    Code
    cd /build/
    ./env.source
    bitbake -cclean -Db ../openembedded/packages/enigma2/enigma2.bb
    bitbake enigma2


    have fun :winking_face:

    Zuerst ignorieren sie dich, dann lachen sie über dich, dann bekämpfen sie dich und dann gewinnst du. <br>
    Mahatma Gandhi

  • many thanks Schaedelmeister for the fast reply :grinning_squinting_face:



    but can you tell me where i can find menu.xml in the /openembedded/1.5/openembedded/packages ???


    because i was testing on the rootfs so when i do the diff file i can edit on the rootfs and create diff files without any problems right ??


    because you know when i start building the rootfs get deleted and back to original

  • Hi


    i am doing changes in AVSwitch.py


    i got this error


  • yousif666:


    Try and change the paths in the diff-file as follows:
    change

    Diff
    --- AVSwitch.py	2009-12-19 02:33:20.000000000 +0300
    +++ avswitch	2009-12-19 03:22:01.000000000 +0300


    to

    Diff
    --- ../lib/python/Components/AVSwitch.py	2009-12-19 02:33:20.000000000 +0300
    +++ ../lib/python/Components/AVSwitch.py 	2009-12-19 03:22:01.000000000 +0300
  • here i tried to do the same but it didn't work for me


    i made changes in dreambox-image.bb


    located in /openembedded/packages/images


    and this is the diff-file i have and i replaced the paths just like what you told me in the AVSwitch but this time didn't work i dont know what is the wrong thing that i did ?




    and i got the same error like the AVSwitch.py


    how i can fix this problem ?

  • Edit the .bb file directly using an editor. Patches are called from inside the .bb files, and if you want to change for example dreambox-image.bb you have to edit that file.

  • Ok


    the file menu.xml located in rootfs/usr/share/enigma2


    when i made few changes just to test and also i created the diff file but still having the same problem as i was having with AVSwitch.py


    so how i should put the directory ? this is the diff-file of menu.xml



    i also tried to change the paths but it didn't work


    help pelase