Jump to content


Photo

Make changes in enigma2


  • Please log in to reply
28 replies to this topic

#1 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 13 January 2011 - 14:08

Hi

I would like to know the right way to make changes in enigma2 i know that the folder is /tmp/work/dm500hd-oe-linux/../git/data

there i see all the enigma2 files so now i would like to make changed i just make the changes there and then bitbake -D enigma2 and then bitbake openpli-enigma2-image ??


also i know that i have to make patch file and i have to put that patch file in /enigma2/enigma2 and call it in enigma2.bb.

and for the patch file i make diff -Naur menu.xml for example i dont know where i direct the file to?

i saw this post and i tried to do the same but it didn't work for me.

http://www.pli-images.org/forum/viewthread.php?forum_id=48&thread_id=11476&pid=120194#post_120194




Re: Make changes in enigma2 #2 andyblac

  • Senior Member
  • 465 posts

+18
Neutral

Posted 13 January 2011 - 17:05

hi

do a

diff -Naur menu.xml.orig menu.xml >menu.xml.patch

then make sure the to file headers in the patch file are pointing the file to patch ie

--- /data/menu.xml.orig    2010-07-28 14:13:01.000000000 +0100
+++ /data/menu.xml    2010-08-29 10:42:28.000000000 +0100

then just call it in the enigma2.bb as

SRC_URI = "git://openpli.git.sourceforge.net/gitroot/openpli/enigma2;protocol=git \
		 file://menu.xml.patch"

hope it helps

Andy.

Hi

I would like to know the right way to make changes in enigma2 i know that the folder is /tmp/work/dm500hd-oe-linux/../git/data

there i see all the enigma2 files so now i would like to make changed i just make the changes there and then bitbake -D enigma2 and then bitbake openpli-enigma2-image ??


also i know that i have to make patch file and i have to put that patch file in /enigma2/enigma2 and call it in enigma2.bb.

and for the patch file i make diff -Naur menu.xml for example i dont know where i direct the file to?

i saw this post and i tried to do the same but it didn't work for me.

http://www.pli-images.org/forum/viewthread.php?forum_id=48&thread_id=11476&pid=120194#post_120194




Re: Make changes in enigma2 #3 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 13 January 2011 - 19:34

Thanks alot andy but i have a question, now i cd to /data folder and there i run the command diff -Naur menu.xml.orig menu.xml >menu.xml.patch right ???? and then i copy the menu.xml.patch to enigma2/enigma2 folder right ?

Re: Make changes in enigma2 #4 andyblac

  • Senior Member
  • 465 posts

+18
Neutral

Posted 13 January 2011 - 20:48

Thanks alot andy but i have a question, now i cd to /data folder and there i run the command diff -Naur menu.xml.orig menu.xml >menu.xml.patch right ???? and then i copy the menu.xml.patch to enigma2/enigma2 folder right ?


correct :), just make sure the file headers in the patch file match the ones i posted above

Re: Make changes in enigma2 #5 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 14 January 2011 - 00:51

I have 1 more question.

when i go to /tmp/work/dm500hd-oe-linux

i go to enigma2-2.7+git0+7e3d9dec732abba8aa238c1170dc3a29a2e09b28-r26

and enigma2-2.7+git0+b6d08ae589550c6e96c5c61acdfee4bfec0bea28-r26

and also i went to openpli-enigma2-image-1.0-r0

but all i see is temp folder i dont see the git folder to enter it and there should be the data folder i dont know why i dont have the other files, i did built the image with bitbake openpli-enigma2-image

and its in deploy/images/dm500hd

Re: Make changes in enigma2 #6 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 14 January 2011 - 00:52

remove rm_work from your local.conf

Re: Make changes in enigma2 #7 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 14 January 2011 - 01:11

Thanks alot :D

Re: Make changes in enigma2 #8 andyblac

  • Senior Member
  • 465 posts

+18
Neutral

Posted 14 January 2011 - 01:34

or just do a

bitbake -c fetch enigma2


then

bitbake -c clean enigma2

when ready to test patch and rebuild

Re: Make changes in enigma2 #9 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 5 March 2011 - 22:11

I saw few patch files have a/ and /b

for example:

in the top of the patch file:

diff --git a/mytube/src/plugin.py b/mytube/src/plugin.py
index 8f9c71d..4420fe2 100755
--- a/mytube/src/plugin.py
+++ b/mytube/src/plugin.py


what does the a and b mean and the diff --git ??

Re: Make changes in enigma2 #10 xener

  • Senior Member
  • 264 posts

0
Neutral

Posted 6 March 2011 - 09:03

first line is command which made diff file, a is old and b is new file.

man diff

Re: Make changes in enigma2 #11 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 6 March 2011 - 12:34

Yes i know this but the a folder and b folder i have to create and put the original files in a and the modified files in b?

because i see diff --git

what does this mean? in alot of patch files i see the a and b i still dont understand how its created by it self or i have to create it.

Re: Make changes in enigma2 #12 ims

  • PLi® Core member
  • 13,939 posts

+215
Excellent

Posted 6 March 2011 - 14:00

Yes i know this but the a folder and b folder i have to create and put the original files in a and the modified files in b?

because i see diff --git

what does this mean? in alot of patch files i see the a and b i still dont understand how its created by it self or i have to create it.


Try this in some your dir:

git clone git://openpli.git.sourceforge.net/gitroot/openpli/enigma2 => will be downloaded source files ( "a")

then edit some files or replace it

then: git add files => after adding it will be "b"

after it you can see, what will be commited with: git diff HEAD

or you can continue with:
git commit
git format-patch HEAD~
Kdo nic nedělá, nic nezkazí!

Re: Make changes in enigma2 #13 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 6 March 2011 - 16:18

ok i saw the modified files but where i can find the diff file (patch) file with my edited things??

when i run the command git diff HEAD

i see the edits i made

diff --git a/lib/python/Components/Timezones.py b/lib/python/Components/Timezone
diff --git a/lib/python/Components/Timezones.py b/lib/python/Components/Timezone
index 7f70915..97cf11a 100644
--- a/lib/python/Components/Timezones.py
+++ b/lib/python/Components/Timezones.py
@@ -56,7 +56,7 @@ class Timezones:

	   def getDefaultTimezone(self):
			 # TODO return something more useful - depending on country-setti
-			t = "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Vienna"
+			t = "(GMT+03:00) Kuwait, Riyadh"
			 for (a,b) in self.timezones:
				    if a == t:
						  return a
diff --git a/lib/python/Components/VolumeControl.py b/lib/python/Components/Volu
index e28a7cd..a4c4c4d 100644
--- a/lib/python/Components/VolumeControl.py
+++ b/lib/python/Components/VolumeControl.py
@@ -21,7 +21,7 @@ class VolumeControl:
			 VolumeControl.instance = self

			 config.audio = ConfigSubsection()
-			config.audio.volume = ConfigInteger(default = 50, limits = (0, 1
+			config.audio.volume = ConfigInteger(default = 70, limits = (0, 1

			 self.volumeDialog = session.instantiateDialog(Volume)
			 self.muteDialog = session.instantiateDialog(Mute)

but i dont know where i can find the patch file.and also i cant find folder "b" with the files i modified

Re: Make changes in enigma2 #14 ims

  • PLi® Core member
  • 13,939 posts

+215
Excellent

Posted 6 March 2011 - 16:21

after "git format-patch HEAD~" will be your patch created in directory, whre was stored files with "git clone git://openpli.git.sourceforge.net/gitroot/openpli/enigma2"
Kdo nic nedělá, nic nezkazí!

Re: Make changes in enigma2 #15 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 6 March 2011 - 16:29

When i run "git format-patch HEAD~" i get this

0001-servicem2ts-Skip-when-libpassthrough-is-not-present.patch

Re: Make changes in enigma2 #16 ims

  • PLi® Core member
  • 13,939 posts

+215
Excellent

Posted 6 March 2011 - 16:30

yes, this is your patch.
Kdo nic nedělá, nic nezkazí!

Re: Make changes in enigma2 #17 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 6 March 2011 - 16:36

this is strange i opened it and my changes are not in this file

this is what in the patch file.

From 541e4edf53c690e5bdde7b29c6b48a9d8c893fcd Mon Sep 17 00:00:00 2001
From: Mike Looijmans <milo-software@users.sourceforge.net>
Date: Fri, 4 Mar 2011 20:21:31 +0100
Subject: [PATCH] servicem2ts: Skip when libpassthrough is not present

---
 lib/service/servicem2ts.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/lib/service/servicem2ts.cpp b/lib/service/servicem2ts.cpp
index e79907d..5ab5b86 100644
--- a/lib/service/servicem2ts.cpp
+++ b/lib/service/servicem2ts.cpp
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <lib/base/init_num.h>
 #include <lib/base/init.h>
 #include <lib/dvb/metaparser.h>
@@ -311,6 +313,12 @@ off_t eM2TSFile::length()
 
 eServiceFactoryM2TS::eServiceFactoryM2TS()
 {
+    struct stat dummy;
+    if (stat("/usr/lib/libpassthrough.so", &dummy) != 0)
+    {
+	   eDebug("eServiceFactoryM2TS aborted, no /usr/lib/libpassthrough.so");
+	   return;
+    }
	ePtr<eServiceCenter> sc;
	eServiceCenter::getPrivInstance(sc);
	if (sc)
-- 
1.7.1


Re: Make changes in enigma2 #18 xener

  • Senior Member
  • 264 posts

0
Neutral

Posted 6 March 2011 - 16:45

may be you need to read this:
http://www.kernel.or...ser-manual.html

Re: Make changes in enigma2 #19 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 6 March 2011 - 16:58

i saw the section where i am having problem with and after reading still.

Re: Make changes in enigma2 #20 yousif666

  • Senior Member
  • 110 posts

+1
Neutral

Posted 6 March 2011 - 18:03

and when i run the command git show

this show up.
commit 541e4edf53c690e5bdde7b29c6b48a9d8c893fcd
Author: Mike Looijmans <milo-software@users.sourceforge.net>
Date:   Fri Mar 4 20:21:31 2011 +0100

    servicem2ts: Skip when libpassthrough is not present

diff --git a/lib/service/servicem2ts.cpp b/lib/service/servicem2ts.cpp
index e79907d..5ab5b86 100644
--- a/lib/service/servicem2ts.cpp
+++ b/lib/service/servicem2ts.cpp
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <lib/base/init_num.h>
 #include <lib/base/init.h>
 #include <lib/dvb/metaparser.h>
@@ -311,6 +313,12 @@ off_t eM2TSFile::length()
 
 eServiceFactoryM2TS::eServiceFactoryM2TS()
 {
+	  struct stat dummy;
+	  if (stat("/usr/lib/libpassthrough.so", &dummy) != 0)
+	  {
+			eDebug("eServiceFactoryM2TS aborted, no /usr/lib/libpassthrough.
+			return;
+	  }
	   ePtr<eServiceCenter> sc;
	   eServiceCenter::getPrivInstance(sc);
	   if (sc)

it dont show my changes.


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users