Skip to contentSkip to conversation

directfb: Allow native builds of directfb 1.7.6

PATCH In review Florian Boor 2 participants 4 messages Mar 10, 2015 – Mar 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 directfb: Allow native builds of directfb 1.7.6

From: Florian Boor <[email protected]>

Required by some DirectFB applications like dfbsee.

---
 meta/recipes-graphics/directfb/directfb_1.7.6.bb |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
meta/recipes-graphics/directfb/directfb_1.7.6.bb +14 -0
index d25d987..7acb7e6 100644
@@ -19,3 +19,17 @@ LEAD_SONAME = "libdirectfb-1.7.so.0"
 
 SRC_URI[md5sum] = "8a7bb06b3f58599b230b4cf314004512"
 SRC_URI[sha256sum] = "44f32bacfb842ea234599532f8481fe41b5bd2310d2bd101508eb3a5df26c9e1"
+
+BBCLASSEXTEND = "native"
+DEPENDS_class-native = "jpeg-native libpng-native"
+EXTRA_OECONF_class-native = "\
+  --enable-freetype=no \
+  --disable-zlib \
+  --with-gfxdrivers=none \
+  --disable-sdl \
+  --disable-vnc \
+  --disable-x11 \
+  --disable-imlib2 \
+  --disable-mesa \
+  --with-inputdrivers=none \
+"
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 14 lines · Florian Boor

From: Florian Boor <[email protected]>

Required by some DirectFB applications like dfbsee.

---
 meta/recipes-graphics/directfb/directfb_1.7.6.bb |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
meta/recipes-graphics/directfb/directfb_1.7.6.bb +0 -0
index d25d987..7acb7e6 100644

meta/recipes-graphics/directfb/directfb_1.7.6.bb LEAD_SONAME = "libdirectfb-1.7.so.0" · line 24

Quoted 6 lines
meta/recipes-graphics/directfb/directfb_1.7.6.bb +3 -0
@@ -19,3 +19,17 @@ LEAD_SONAME = "libdirectfb-1.7.so.0"
 
 SRC_URI[md5sum] = "8a7bb06b3f58599b230b4cf314004512"
 SRC_URI[sha256sum] = "44f32bacfb842ea234599532f8481fe41b5bd2310d2bd101508eb3a5df26c9e1"
+
+BBCLASSEXTEND = "native"
+DEPENDS_class-native = "jpeg-native libpng-native"

Are you sure that excluding tslib-native from DEPENDS works? Since -lts is hardcoded in LDFLAGS (see directfb.inc) the linker won't run unless libts.so is found in sysroot (regardless of whether or not you configure with "--with-inputdrivers=none"). That being said, I don't know if -lts really needs to be hardcoded in LDFLAGS, it's been there since directfb was first imported into oe-core, with no explanation of comment.

Quoted 19 lines
meta/recipes-graphics/directfb/directfb_1.7.6.bb +11 -1
+EXTRA_OECONF_class-native = "\
+  --enable-freetype=no \
+  --disable-zlib \
+  --with-gfxdrivers=none \
+  --disable-sdl \
+  --disable-vnc \
+  --disable-x11 \
+  --disable-imlib2 \
+  --disable-mesa \
+  --with-inputdrivers=none \
+"
--

1.7.10.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw

Hi Arndre,

Quoted 7 lines · Andre McCurdy

Are you sure that excluding tslib-native from DEPENDS works? Since -lts is hardcoded in LDFLAGS (see directfb.inc) the linker won't run unless libts.so is found in sysroot (regardless of whether or not you configure with "--with-inputdrivers=none"). That being said, I don't know if -lts really needs to be hardcoded in LDFLAGS, it's been there since directfb was first imported into oe-core, with no explanation of comment.

yes it works - tested it and made sure that there was no native libts around from a previous build.
But you are right, this hardcoded -lts in LDFLAGS looks strange. I can take a look at this later since I need to build and test this anyway.

Greetings

Florian

Signature · 5 lines
The dream of yesterday                  Florian Boor
is the hope of today                    Tel: +49 271-771091-15
and the reality of tomorrow.            Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904]        [email protected]
                                        http://www.kernelconcepts.de/en
#3 lore raw

Hi Florian,

Quoted 11 lines · Florian Boor

Hi Arndre,

Quoted 7 lines · Andre McCurdy

Are you sure that excluding tslib-native from DEPENDS works? Since -lts is hardcoded in LDFLAGS (see directfb.inc) the linker won't run unless libts.so is found in sysroot (regardless of whether or not you configure with "--with-inputdrivers=none"). That being said, I don't know if -lts really needs to be hardcoded in LDFLAGS, it's been there since directfb was first imported into oe-core, with no explanation of comment.

Quoted 2 lines

yes it works - tested it and made sure that there was no native libts around from a previous build.

That's a bit mysterious. It does fail for me.

I wonder if your build is somehow finding a libts.so from the host system?

Quoted 2 lines

But you are right, this hardcoded -lts in LDFLAGS looks strange. I can take a look at this later since I need to build and test this anyway.

Good, I think removing the hardcoded -lts from LDFLAGS is going to be the right approach.

Quoted 11 lines

Greetings

Florian

--

The dream of yesterday                  Florian Boor
is the hope of today                    Tel: +49 271-771091-15
and the reality of tomorrow.            Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904]        [email protected]

http://www.kernelconcepts.de/en