LUG Castegnato - Linux Users Group Castegnato / Compilare un immagine openpli per dm800se e altri decoder

LUG Castegnato - Linux Users Group Castegnato

Linux User Group Castegnato - BS

Non hai eseguito l'accesso.

  • Indice
  •  » Dreambox
  •  » Compilare un immagine openpli per dm800se e altri decoder

#1 01-09-2017 22:22:29

Ken Parker
Moderator
Registrato: 14-03-2008
Messaggi: 735
Sito web

Compilare un immagine openpli per dm800se e altri decoder

Come prima cosa si devono installare i pacchetti per la distro:

sudo apt-get install sed wget cvs subversion git-core \
  coreutils unzip texi2html texinfo docbook-utils \
  gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ \
  desktop-file-utils chrpath

sudo apt-get install xsltproc
sudo apt-get install docbook-xsl

sudo apt-get install libpseudo

Effettuare i seguenti comandi:

mkdir /home/davide/openpli_4.0
cd openpli_4.0/
mkdir Patch

Creare il seguente script  e chiamatelo Compiler.sh

#!/bin/bash
#
#
if [ -z "$1" ];
    then
    echo ""
    echo "Utilizzare ./Compiler.sh [nome decoder]"
    echo "           esempio:"
    echo "           ./Compiler.sh dm800se"
    echo ""
    exit 0
fi
   
git clone git://github.com/OpenPLi/openpli-oe-core
cd openpli-oe-core
git checkout release-4
git pull
make -f Makefile
#
# Patch file
patch -p1 <../Patch/open-pli-bb-file.patch
cd build
source env.source
MACHINE=$1 bitbake openpli-enigma2-image

Creare la seguente patch e salvarla nella directory Patch con il nome  open-pli-bb-file.patch :



diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/meta-openembedded/meta-multimedia/recipes-multimedia/musicbrainz/files/libmusicbrainz-myscotom.patch openpli-oe-core.ok/meta-openembedded/meta-multimedia/recipes-multimedia/musicbrainz/files/libmusicbrainz-myscotom.patch
--- openpli-oe-core/meta-openembedded/meta-multimedia/recipes-multimedia/musicbrainz/files/libmusicbrainz-myscotom.patch    1970-01-01 01:00:00.000000000 +0100
+++ openpli-oe-core.ok/meta-openembedded/meta-multimedia/recipes-multimedia/musicbrainz/files/libmusicbrainz-myscotom.patch    2017-10-21 18:49:34.000000000 +0200
@@ -0,0 +1,66 @@
+Index: git/src/xmlParser.cpp
+===================================================================
+--- git.orig/src/xmlParser.cpp
++++ git/src/xmlParser.cpp
+@@ -696,10 +696,10 @@ XMLSTR ToXMLStringTool::toXMLUnSafe(XMLS
+ #else
+         switch(XML_ByteTable[(unsigned char)ch])
+         {
+-        case 4: *(dest++)=*(source++);
+-        case 3: *(dest++)=*(source++);
+-        case 2: *(dest++)=*(source++);
+-        case 1: *(dest++)=*(source++);
++        case 4: *(dest++)=*(source++); break;
++        case 3: *(dest++)=*(source++); break;
++        case 2: *(dest++)=*(source++); break;
++        case 1: *(dest++)=*(source++); break;
+         }
+ #endif
+ out_of_loop1:
+@@ -854,10 +854,10 @@ XMLSTR fromXMLString(XMLCSTR s, int lo,
+ #else
+             switch(XML_ByteTable[(unsigned char)*ss])
+             {
+-            case 4: *(d++)=*(ss++); ll--;
+-            case 3: *(d++)=*(ss++); ll--;
+-            case 2: *(d++)=*(ss++); ll--;
+-            case 1: *(d++)=*(ss++);
++            case 4: *(d++)=*(ss++); ll--; break;
++            case 3: *(d++)=*(ss++); ll--; break;
++            case 2: *(d++)=*(ss++); ll--; break;
++            case 1: *(d++)=*(ss++); break;
+             }
+ #endif
+         }
+@@ -1021,6 +1021,7 @@ static NextToken GetNextToken(XML *pXML,
+                 *pType = eTokenShortHandClose;
+                 break;
+             }
++            break;
+
+             // If we haven't found a short hand closing tag then drop into the
+             // text process
+@@ -1028,6 +1029,7 @@ static NextToken GetNextToken(XML *pXML,
+         // Other characters
+         default:
+             nIsText = TRUE;
++            break;
+         }
+
+         // If this is a TEXT node
+@@ -2727,11 +2729,11 @@ XMLNode::XMLCharEncoding XMLNode::guessC
+     while (i<l)
+         switch (XML_utf8ByteTable[b[i]])
+         {
+-        case 4: i++; if ((i<l)&&(b[i]& 0xC0)!=0x80) { bestGuess=char_encoding_legacy; i=l; } // 10bbbbbb ?
+-        case 3: i++; if ((i<l)&&(b[i]& 0xC0)!=0x80) { bestGuess=char_encoding_legacy; i=l; } // 10bbbbbb ?
+-        case 2: i++; if ((i<l)&&(b[i]& 0xC0)!=0x80) { bestGuess=char_encoding_legacy; i=l; } // 10bbbbbb ?
++        case 4: i++; if ((i<l)&&(b[i]& 0xC0)!=0x80) { bestGuess=char_encoding_legacy; i=l; } break; // 10bbbbbb ?
++        case 3: i++; if ((i<l)&&(b[i]& 0xC0)!=0x80) { bestGuess=char_encoding_legacy; i=l; } break;  // 10bbbbbb ?
++        case 2: i++; if ((i<l)&&(b[i]& 0xC0)!=0x80) { bestGuess=char_encoding_legacy; i=l; } break;  // 10bbbbbb ?
+         case 1: i++; break;
+-        case 0: i=l;
++        case 0: i=l; break;
+         }
+     if (!useXMLEncodingAttribute) return bestGuess;
+     // if encoding is specified and different from utf-8 than it's non-utf8
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/meta-openembedded/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb openpli-oe-core.ok/meta-openembedded/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
--- openpli-oe-core/meta-openembedded/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb    2017-10-22 10:21:30.922341694 +0200
+++ openpli-oe-core.ok/meta-openembedded/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb    2017-10-21 18:51:38.652118156 +0200
@@ -10,7 +10,9 @@

SRCREV = "0749dd0a35b4a54316da064475863a4ac6e28e7e"
SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git \
-           file://allow-libdir-override.patch "
+           file://allow-libdir-override.patch  \
+           file://libmusicbrainz-myscotom.patch  \
+"

S = "${WORKDIR}/git"

diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/meta-openpli/recipes-connectivity/samba/samba.inc openpli-oe-core.ok/meta-openpli/recipes-connectivity/samba/samba.inc
--- openpli-oe-core/meta-openpli/recipes-connectivity/samba/samba.inc    2017-10-22 10:17:31.613526358 +0200
+++ openpli-oe-core.ok/meta-openpli/recipes-connectivity/samba/samba.inc    2017-10-07 15:28:47.690739288 +0200
@@ -2,7 +2,7 @@
LICENSE = "GPL"
DEPENDS = "readline virtual/libiconv talloc"

-SRC_URI = "http://samba.org/samba/ftp/stable/samba-${PV}.tar.gz \
+SRC_URI = "http://ftp.gwdg.de/pub/samba/stable/samba-${PV}.tar.gz  \
            file://volatiles.03_samba \
            file://smb.conf \
            file://init \
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/meta-openpli/recipes-devtools/pseudo/pseudo-1.6.4/pseudo-glibc-rtld-next-workaround.patch openpli-oe-core.ok/meta-openpli/recipes-devtools/pseudo/pseudo-1.6.4/pseudo-glibc-rtld-next-workaround.patch
--- openpli-oe-core/meta-openpli/recipes-devtools/pseudo/pseudo-1.6.4/pseudo-glibc-rtld-next-workaround.patch    2017-10-22 10:17:31.617526304 +0200
+++ openpli-oe-core.ok/meta-openpli/recipes-devtools/pseudo/pseudo-1.6.4/pseudo-glibc-rtld-next-workaround.patch    1970-01-01 01:00:00.000000000 +0100
@@ -1,16 +0,0 @@
-Index: pseudo-1.6.4/pseudo_wrappers.c
-===================================================================
---- pseudo-1.6.4.orig/pseudo_wrappers.c
-+++ pseudo-1.6.4/pseudo_wrappers.c
-@@ -119,9 +119,9 @@ pseudo_init_one_wrapper(pseudo_function
-             return;
-         }
- #else
--        if (e != NULL) {
-+        /*if (e != NULL) {
-             pseudo_diag("No real function for %s: %s\n", func->name, e);
--        }
-+        }*/
- #endif
-     }
- }
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/meta-openpli/recipes-devtools/pseudo/pseudo_1.6.4.bbappend openpli-oe-core.ok/meta-openpli/recipes-devtools/pseudo/pseudo_1.6.4.bbappend
--- openpli-oe-core/meta-openpli/recipes-devtools/pseudo/pseudo_1.6.4.bbappend    2017-10-22 10:17:31.617526304 +0200
+++ openpli-oe-core.ok/meta-openpli/recipes-devtools/pseudo/pseudo_1.6.4.bbappend    1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-SRC_URI += "file://pseudo-glibc-rtld-next-workaround.patch"
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/meta-openpli/recipes-multimedia/dvdbackup/dvdbackup_0.4.2.bb openpli-oe-core.ok/meta-openpli/recipes-multimedia/dvdbackup/dvdbackup_0.4.2.bb
--- openpli-oe-core/meta-openpli/recipes-multimedia/dvdbackup/dvdbackup_0.4.2.bb    2017-10-22 10:17:31.621526247 +0200
+++ openpli-oe-core.ok/meta-openpli/recipes-multimedia/dvdbackup/dvdbackup_0.4.2.bb    2017-10-09 19:51:28.827609734 +0200
@@ -7,7 +7,7 @@
DEPENDS = "libdvdread virtual/gettext"
PR = "r2"

-SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${P}.tar.xz"
+SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/dvdbackup/${P}.tar.xz/28f273b2f27a3afea3a3c965ddbede86/${P}.tar.xz"

SRC_URI += "file://autoconf-warnings-are-not-errors.patch"

diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/meta-openpli/recipes-openpli/enigma2-channelsettings/hans.inc openpli-oe-core.ok/meta-openpli/recipes-openpli/enigma2-channelsettings/hans.inc
--- openpli-oe-core/meta-openpli/recipes-openpli/enigma2-channelsettings/hans.inc    2017-10-22 10:17:31.621526247 +0200
+++ openpli-oe-core.ok/meta-openpli/recipes-openpli/enigma2-channelsettings/hans.inc    2017-10-07 14:42:38.289450504 +0200
@@ -4,7 +4,7 @@
PKGV = "1.0+git${GITPKGV}"
PR = "r0"

-SRCREV = "7e1e88b9f0340d4e69927d944620399f2b55c24e"
+SRCREV = "daee30e31f567c24b9605f0eaf5d3bd511deed0a"

SRC_URI = "git://github.com/haroo/HansSettings.git"
S = "${WORKDIR}/git"
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-core/glib-2.0/glib-2.0_2.42.1.bb openpli-oe-core.ok/openembedded-core/meta/recipes-core/glib-2.0/glib-2.0_2.42.1.bb
--- openpli-oe-core/openembedded-core/meta/recipes-core/glib-2.0/glib-2.0_2.42.1.bb    2017-10-22 10:21:31.602332963 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-core/glib-2.0/glib-2.0_2.42.1.bb    2017-10-07 15:27:51.116801972 +0200
@@ -18,5 +18,8 @@

SRC_URI_append_class-native = " file://glib-gettextize-dir.patch"

+CFLAGS_append = " -Wno-error=format-nonliteral "
+
+
SRC_URI[md5sum] = "89c4119e50e767d3532158605ee9121a"
SRC_URI[sha256sum] = "8f3f0865280e45b8ce840e176ef83bcfd511148918cc8d39df2ee89b67dcf89a"
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-core/glibc/cross-localedef-native_2.20.bb openpli-oe-core.ok/openembedded-core/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
--- openpli-oe-core/openembedded-core/meta/recipes-core/glibc/cross-localedef-native_2.20.bb    2017-10-22 10:21:31.602332963 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-core/glibc/cross-localedef-native_2.20.bb    2017-10-10 00:11:01.810430858 +0200
@@ -43,7 +43,7 @@
S = "${WORKDIR}/git"

EXTRA_OECONF = "--with-glibc=${S}"
-CFLAGS += "-DNOT_IN_libc=1"
+CFLAGS += "-DNOT_IN_libc=1 -fgnu89-inline"

do_configure () {
    ${S}/localedef/configure ${EXTRA_OECONF}
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-core/glibc/glibc/glibc-myscotom.patch openpli-oe-core.ok/openembedded-core/meta/recipes-core/glibc/glibc/glibc-myscotom.patch
--- openpli-oe-core/openembedded-core/meta/recipes-core/glibc/glibc/glibc-myscotom.patch    1970-01-01 01:00:00.000000000 +0100
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-core/glibc/glibc/glibc-myscotom.patch    2017-10-16 21:07:21.000000000 +0200
@@ -0,0 +1,9 @@
+Index: git/sysdeps/unix/sysv/linux/mips/vfork.S
+===================================================================
+--- git.orig/sysdeps/unix/sysv/linux/mips/vfork.S
++++ git/sysdeps/unix/sysv/linux/mips/vfork.S
+@@ -108,3 +108,4 @@ L(error):
+
+ libc_hidden_def(__vfork)
+ weak_alias (__vfork, vfork)
++strong_alias (__vfork, __libc_vfork)
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-core/glibc/glibc_2.20.bb openpli-oe-core.ok/openembedded-core/meta/recipes-core/glibc/glibc_2.20.bb
--- openpli-oe-core/openembedded-core/meta/recipes-core/glibc/glibc_2.20.bb    2017-10-22 10:21:31.606332909 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-core/glibc/glibc_2.20.bb    2017-10-16 21:12:24.000000000 +0200
@@ -25,6 +25,7 @@
            file://fix_am_rootsbindir.patch \
            ${EGLIBCPATCHES} \
            ${CVEPATCHES} \
+           file://glibc-myscotom.patch \
           "
EGLIBCPATCHES = "\
            file://timezone-re-written-tzselect-as-posix-sh.patch \
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-core/ncurses/ncurses-5.9/0001-Fix-errors-in-type-conversion.patch openpli-oe-core.ok/openembedded-core/meta/recipes-core/ncurses/ncurses-5.9/0001-Fix-errors-in-type-conversion.patch
--- openpli-oe-core/openembedded-core/meta/recipes-core/ncurses/ncurses-5.9/0001-Fix-errors-in-type-conversion.patch    1970-01-01 01:00:00.000000000 +0100
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-core/ncurses/ncurses-5.9/0001-Fix-errors-in-type-conversion.patch    2017-10-08 21:35:03.000000000 +0200
@@ -0,0 +1,153 @@
+From 6e12cb73e23e8e9488c6db1c4710bb4b3d2b48c3 Mon Sep 17 00:00:00 2001
+From: Adam Jiang <jiang.adam@gmail.com>
+Date: Fri, 1 Aug 2014 19:58:40 +0900
+Subject: [PATCH 1/2] Fix errors in type conversion
+
+Basically, converting to 'void*' is not a good idea. However, if that
+conversion is unavoidable, it should be done in a proper way. 'const_cast'
+itself could not convert type 'T*' to 'void *', this patch adds
+'reintepret_cast' to do it correctly.
+
+At the same time, function that returns on 'const' member like 'void*' should
+not be declared as 'const'.
+---
+ c++/cursesf.h | 12 +++++++-----
+ c++/cursesm.h | 10 +++++-----
+ c++/cursesp.h |  9 +++++----
+ 3 files changed, 17 insertions(+), 14 deletions(-)
+
+diff --git a/c++/cursesf.h b/c++/cursesf.h
+index 70a30c3..23b3022 100644
+--- a/c++/cursesf.h
++++ b/c++/cursesf.h
+@@ -673,7 +673,8 @@ protected:
+            const T* p_UserData = STATIC_CAST(T*)(0))
+     : NCursesForm(nlines,ncols,begin_y,begin_x) {
+       if (form)
+-    set_user (const_cast<void *>(p_UserData));
++    set_user (const_cast<void *>(reinterpret_cast<const void*>
++                     (p_UserData)));
+   }
+
+ public:
+@@ -683,7 +684,7 @@ public:
+            bool autoDelete_Fields=FALSE)
+     : NCursesForm (Fields, with_frame, autoDelete_Fields) {
+       if (form)
+-    set_user (const_cast<void *>(p_UserData));
++    set_user (const_cast<void *>(reinterpret_cast<const void*>(p_UserData)));
+   };
+
+   NCursesUserForm (NCursesFormField Fields[],
+@@ -697,19 +698,20 @@ public:
+     : NCursesForm (Fields, nlines, ncols, begin_y, begin_x,
+            with_frame, autoDelete_Fields) {
+       if (form)
+-    set_user (const_cast<void *>(p_UserData));
++    set_user (const_cast<void *>(reinterpret_cast<const void*>
++                     (p_UserData)));
+   };
+
+   virtual ~NCursesUserForm() {
+   };
+
+-  inline T* UserData (void) const {
++  inline T* UserData (void) {
+     return reinterpret_cast<T*>(get_user ());
+   };
+
+   inline virtual void setUserData (const T* p_UserData) {
+     if (form)
+-      set_user (const_cast<void *>(p_UserData));
++      set_user (const_cast<void *>(reinterpret_cast<const void*>(p_UserData)));
+   }
+
+ };
+diff --git a/c++/cursesm.h b/c++/cursesm.h
+index d9c2273..545ed49 100644
+--- a/c++/cursesm.h
++++ b/c++/cursesm.h
+@@ -631,7 +631,7 @@ protected:
+            const T* p_UserData = STATIC_CAST(T*)(0))
+     : NCursesMenu(nlines,ncols,begin_y,begin_x) {
+       if (menu)
+-    set_user (const_cast<void *>(p_UserData));
++    set_user (const_cast<void *>(reinterpret_cast<const void*>(p_UserData)));
+   }
+
+ public:
+@@ -641,7 +641,7 @@ public:
+            bool autoDelete_Items=FALSE)
+     : NCursesMenu (Items, with_frame, autoDelete_Items) {
+       if (menu)
+-    set_user (const_cast<void *>(p_UserData));
++    set_user (const_cast<void *>(reinterpret_cast<const void*>(p_UserData)));
+   };
+
+   NCursesUserMenu (NCursesMenuItem Items[],
+@@ -653,19 +653,19 @@ public:
+            bool with_frame=FALSE)
+     : NCursesMenu (Items, nlines, ncols, begin_y, begin_x, with_frame) {
+       if (menu)
+-    set_user (const_cast<void *>(p_UserData));
++    set_user (const_cast<void *>(reinterpret_cast<const void*>(p_UserData)));
+   };
+
+   virtual ~NCursesUserMenu() {
+   };
+
+-  inline T* UserData (void) const {
++  inline T* UserData (void) {
+     return reinterpret_cast<T*>(get_user ());
+   };
+
+   inline virtual void setUserData (const T* p_UserData) {
+     if (menu)
+-      set_user (const_cast<void *>(p_UserData));
++      set_user (const_cast<void *>(reinterpret_cast<const void*>(p_UserData)));
+   }
+ };
+
+diff --git a/c++/cursesp.h b/c++/cursesp.h
+index 9b63d6d..661e4a9 100644
+--- a/c++/cursesp.h
++++ b/c++/cursesp.h
+@@ -236,7 +236,8 @@ public:
+     : NCursesPanel (nlines, ncols, begin_y, begin_x)
+   {
+       if (p)
+-    set_user (const_cast<void *>(p_UserData));
++    set_user (const_cast<void *>(reinterpret_cast<const void*>
++                     (p_UserData)));
+   };
+   // This creates an user panel of the requested size with associated
+   // user data pointed to by p_UserData.
+@@ -244,14 +245,14 @@ public:
+   NCursesUserPanel(const T* p_UserData = STATIC_CAST(T*)(0)) : NCursesPanel()
+   {
+     if (p)
+-      set_user(const_cast<void *>(p_UserData));
++      set_user(const_cast<void *>(reinterpret_cast<const void*>(p_UserData)));
+   };
+   // This creates an user panel associated with the ::stdscr and user data
+   // pointed to by p_UserData.
+
+   virtual ~NCursesUserPanel() {};
+
+-  T* UserData (void) const
++  T* UserData (void)
+   {
+     return reinterpret_cast<T*>(get_user ());
+   };
+@@ -260,7 +261,7 @@ public:
+   virtual void setUserData (const T* p_UserData)
+   {
+     if (p)
+-      set_user (const_cast<void *>(p_UserData));
++      set_user (const_cast<void *>(reinterpret_cast<const void*>(p_UserData)));
+   }
+   // Associate the user panel with the user data pointed to by p_UserData.
+ };
+--
+1.8.5.2 (Apple Git-48)
+
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-core/ncurses/ncurses_5.9.bb openpli-oe-core.ok/openembedded-core/meta/recipes-core/ncurses/ncurses_5.9.bb
--- openpli-oe-core/openembedded-core/meta/recipes-core/ncurses/ncurses_5.9.bb    2017-10-22 10:21:31.610332860 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-core/ncurses/ncurses_5.9.bb    2017-10-08 21:54:47.594663482 +0200
@@ -4,6 +4,7 @@

SRC_URI += "file://tic-hang.patch \
             file://config.cache \
+            file://0001-Fix-errors-in-type-conversion.patch \
"

SRC_URI[md5sum] = "8cb9c412e5f2d96bc6f459aa8c6282a1"
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-core/ncurses/ncurses.inc openpli-oe-core.ok/openembedded-core/meta/recipes-core/ncurses/ncurses.inc
--- openpli-oe-core/openembedded-core/meta/recipes-core/ncurses/ncurses.inc    2017-10-22 10:21:31.610332860 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-core/ncurses/ncurses.inc    2017-10-08 20:14:23.382965194 +0200
@@ -26,7 +26,7 @@
# _GNU_SOURCE is required for widec stuff and is detected automatically
# for target objects.  But it must be set manually for native and sdk
# builds.
-BUILD_CPPFLAGS += "-D_GNU_SOURCE"
+BUILD_CPPFLAGS += "-D_GNU_SOURCE -P"

# natives don't generally look in base_libdir
base_libdir_class-native = "${libdir}"
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-devtools/binutils/binutils_2.24.bb openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/binutils/binutils_2.24.bb
--- openpli-oe-core/openembedded-core/meta/recipes-devtools/binutils/binutils_2.24.bb    2017-10-22 10:21:31.622332706 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/binutils/binutils_2.24.bb    2017-10-08 23:29:14.727068254 +0200
@@ -14,6 +14,10 @@
                              --enable-install-libiberty \
                              --enable-install-libbfd"

+CFLAGS_append = " -Wno-error=shift-negative-value -Wno-error=implicit-fallthrough  -Wno-error=format-overflow -Wno-error=format-truncation -Wno-error=pointer-compare \
+                  -Wno-error=misleading-indentation  -Wno-error=unused-const-variable  -Wno-error=int-in-bool-context -Wno-error=logical-not-parentheses \
+"
+
do_install_class-native () {
    autotools_do_install

diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-devtools/elfutils/elfutils_0.161.bb openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/elfutils/elfutils_0.161.bb
--- openpli-oe-core/openembedded-core/meta/recipes-devtools/elfutils/elfutils_0.161.bb    2017-10-22 10:21:31.626332651 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/elfutils/elfutils_0.161.bb    2017-10-07 15:26:43.696632569 +0200
@@ -72,6 +72,8 @@

BBCLASSEXTEND = "native nativesdk"

+CFLAGS_append = " -Wno-error=nonnull-compare -Wno-error=misleading-indentation -Wno-error=implicit-fallthrough -Wno-error=format-truncation "
+
# Package utilities separately
PACKAGES =+ "${PN}-binutils libelf libasm libdw libdw-dev libasm-dev libelf-dev"
FILES_${PN}-binutils = "\
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-devtools/gcc/gcc-4.9/gcc-4-9-1-myscotom.patch openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/gcc/gcc-4.9/gcc-4-9-1-myscotom.patch
--- openpli-oe-core/openembedded-core/meta/recipes-devtools/gcc/gcc-4.9/gcc-4-9-1-myscotom.patch    1970-01-01 01:00:00.000000000 +0100
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/gcc/gcc-4.9/gcc-4-9-1-myscotom.patch    2017-10-17 22:29:51.000000000 +0200
@@ -0,0 +1,28 @@
+Index: gcc-4.9.1/gcc/cp/cfns.gperf
+===================================================================
+--- gcc-4.9.1.orig/gcc/cp/cfns.gperf
++++ gcc-4.9.1/gcc/cp/cfns.gperf
+@@ -22,6 +22,9 @@ __inline
+ static unsigned int hash (const char *, unsigned int);
+ #ifdef __GNUC__
+ __inline
++#ifdef __GNUC_STDC_INLINE__
++__attribute__ ((__gnu_inline__))
++#endif
+ #endif
+ const char * libc_name_p (const char *, unsigned int);
+ %}
+Index: gcc-4.9.1/gcc/cp/cfns.h
+===================================================================
+--- gcc-4.9.1.orig/gcc/cp/cfns.h
++++ gcc-4.9.1/gcc/cp/cfns.h
+@@ -53,6 +53,9 @@ __inline
+ static unsigned int hash (const char *, unsigned int);
+ #ifdef __GNUC__
+ __inline
++#ifdef __GNUC_STDC_INLINE__
++__attribute__ ((__gnu_inline__))
++#endif
+ #endif
+ const char * libc_name_p (const char *, unsigned int);
+ /* maximum key range = 391, duplicates = 0 */
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-devtools/gcc/gcc-4.9.inc openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/gcc/gcc-4.9.inc
--- openpli-oe-core/openembedded-core/meta/recipes-devtools/gcc/gcc-4.9.inc    2017-10-22 10:21:31.630332601 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/gcc/gcc-4.9.inc    2017-10-17 22:32:36.000000000 +0200
@@ -75,6 +75,7 @@
     file://0058-gcc-r212171.patch \
     file://0059-gcc-PR-rtl-optimization-63348.patch \
     file://target-gcc-includedir.patch \
+    file://gcc-4-9-1-myscotom.patch \
"
SRC_URI[md5sum] = "fddf71348546af523353bd43d34919c1"
SRC_URI[sha256sum] = "d334781a124ada6f38e63b545e2a3b8c2183049515a1abab6d513f109f1d717e"
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-devtools/gcc/gcc-cross.inc openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/gcc/gcc-cross.inc
--- openpli-oe-core/openembedded-core/meta/recipes-devtools/gcc/gcc-cross.inc    2017-10-22 10:21:31.630332601 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/gcc/gcc-cross.inc    2017-10-22 10:15:51.598939315 +0200
@@ -25,8 +25,8 @@
"

EXTRA_OECONF_PATHS = "\
-    --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
-    --with-sysroot=/not/exist \
+    --with-gxx-include-dir=${STAGING_DIR_TARGET}/${target_includedir}/c++/${BINV} \
+    --with-sysroot=${STAGING_DIR_TARGET} \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
"

diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-devtools/mtd/mtd-utils/mdt-utils-myscotom.patch openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/mtd/mtd-utils/mdt-utils-myscotom.patch
--- openpli-oe-core/openembedded-core/meta/recipes-devtools/mtd/mtd-utils/mdt-utils-myscotom.patch    1970-01-01 01:00:00.000000000 +0100
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/mtd/mtd-utils/mdt-utils-myscotom.patch    2017-10-18 00:51:44.581972285 +0200
@@ -0,0 +1,44 @@
+Index: git/mkfs.ubifs/hashtable/hashtable_itr.c
+===================================================================
+--- git.orig/mkfs.ubifs/hashtable/hashtable_itr.c
++++ git/mkfs.ubifs/hashtable/hashtable_itr.c
+@@ -37,7 +37,7 @@ hashtable_iterator(struct hashtable *h)
+ /*****************************************************************************/
+ /* key      - return the key of the (key,value) pair at the current position */
+ /* value    - return the value of the (key,value) pair at the current position */
+-
++/*
+ void *
+ hashtable_iterator_key(struct hashtable_itr *i)
+ { return i->e->k; }
+@@ -45,7 +45,7 @@ hashtable_iterator_key(struct hashtable_
+ void *
+ hashtable_iterator_value(struct hashtable_itr *i)
+ { return i->e->v; }
+-
++*/
+ /*****************************************************************************/
+ /* advance - advance the iterator to the next element
+  *           returns zero if advanced to end of table */
+Index: git/mkfs.ubifs/hashtable/hashtable_itr.h
+===================================================================
+--- git.orig/mkfs.ubifs/hashtable/hashtable_itr.h
++++ git/mkfs.ubifs/hashtable/hashtable_itr.h
+@@ -28,7 +28,7 @@ hashtable_iterator(struct hashtable *h);
+ /* hashtable_iterator_key
+  * - return the value of the (key,value) pair at the current position */
+
+-extern inline void *
++static inline void *
+ hashtable_iterator_key(struct hashtable_itr *i)
+ {
+     return i->e->k;
+@@ -37,7 +37,7 @@ hashtable_iterator_key(struct hashtable_
+ /*****************************************************************************/
+ /* value - return the value of the (key,value) pair at the current position */
+
+-extern inline void *
++static inline void *
+ hashtable_iterator_value(struct hashtable_itr *i)
+ {
+     return i->e->v;
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-devtools/mtd/mtd-utils_git.bb openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/mtd/mtd-utils_git.bb
--- openpli-oe-core/openembedded-core/meta/recipes-devtools/mtd/mtd-utils_git.bb    2017-10-22 10:21:31.638332497 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/mtd/mtd-utils_git.bb    2017-10-17 23:33:34.657984709 +0200
@@ -11,6 +11,7 @@
SRC_URI = "git://git.infradead.org/mtd-utils.git \
        file://add-exclusion-to-mkfs-jffs2-git-2.patch \
        file://fix-armv7-neon-alignment.patch \
+        file://mdt-utils-myscotom.patch \
"

PV = "1.5.1+git${SRCPV}"
diff -Nur '--exclude=.*' '--exclude=*.elf' '--exclude=*.o' '--exclude=*~' '--exclude=*.symvers' '--exclude=*.map' '--exclude=*.a' '--exclude=*.srec' openpli-oe-core/openembedded-core/meta/recipes-devtools/subversion/subversion_1.8.10.bb openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/subversion/subversion_1.8.10.bb
--- openpli-oe-core/openembedded-core/meta/recipes-devtools/subversion/subversion_1.8.10.bb    2017-10-22 10:21:31.650332343 +0200
+++ openpli-oe-core.ok/openembedded-core/meta/recipes-devtools/subversion/subversion_1.8.10.bb    2017-10-09 19:16:45.577157663 +0200
@@ -30,6 +30,8 @@

inherit autotools

+BUILD_CPPFLAGS += "-P"
+
export LDFLAGS += " -L${STAGING_LIBDIR} "

acpaths = "-I build/ -I build/ac-macros/"

Lanciare poi il comando :

./Compiler.sh dm800se


Quanto esce l' errore :
No real function for mknodat: /home/tuxbox/OpenPli.4/2017.10.22/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknodat



copiare il file che si trova nelle directory

/usr/lib/x86_64-linux-gnu/pseudo/libpseudo.so

nella directory:


/home/davide/OpenPli.4/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/lib/pseudo/lib64/libpseudo.so

poi eseguire i seguenti comandi:

cd openpli-oe-core/build/
source env.source
MACHINE=dm800se bitbake openpli-enigma2-image

Good hacking


Coltiva Linux, perchč Windows si pianta da solo

Non in linea

 
  • Indice
  •  » Dreambox
  •  » Compilare un immagine openpli per dm800se e altri decoder

Footer forum

Powered by PunBB
© Copyright 2002–2008 PunBB