Skip to contentSkip to conversation

dtc: don't use autotools as this doesn't use autotools

PATCH In review Ross Burton 4 participants 5 messages Dec 5, 2014 – Dec 8, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dtc: don't use autotools as this doesn't use autotools

---
 meta/recipes-kernel/dtc/dtc.inc |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
meta/recipes-kernel/dtc/dtc.inc +5 -3
index 95023b6..0c409b0 100644
@@ -4,16 +4,18 @@ SECTION = "bootloader"
 LICENSE = "GPLv2 | BSD"
 DEPENDS = "flex-native bison-native"
 
-inherit autotools-brokensep
-
 SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git \
            file://make_install.patch \
 	  "
 
-EXTRA_OEMAKE='PREFIX="${prefix}" LIBDIR="${libdir}"'
+EXTRA_OEMAKE='PREFIX="${prefix}" LIBDIR="${libdir}" DESTDIR="${D}"'
 
 S = "${WORKDIR}/git"
 
+do_install () {
+	oe_runmake install
+}
+
 PACKAGES =+ "${PN}-misc"
 FILES_${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff"
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 12 lines

Op 5 dec. 2014, om 21:46 heeft Ross Burton <[email protected]> het volgende geschreven:

---
meta/recipes-kernel/dtc/dtc.inc | 8 +++++---

1 file changed, 5 insertions(+), 3 deletions(-)
meta/recipes-kernel/dtc/dtc.inc +0 -0
index 95023b6..0c409b0 100644

[..]

meta/recipes-kernel/dtc/dtc.inc SECTION = "bootloader" · line 17

Quoted 3 lines
meta/recipes-kernel/dtc/dtc.inc +3 -0
+do_install () {
+	oe_runmake install
+}

I'm wondering if it makes sense to have base.bbclass do this the default do_install. Having a virtually empty recipe with only a do_install always makes me a bit uneasy.

regards,

Koen

#2 lore raw
Quoted 16 lines · Koen Kooi
Quoted 1 line

Op 5 dec. 2014, om 21:46 heeft Ross Burton <[email protected]> het

volgende geschreven:

Review

Quoted 7 lines

---
meta/recipes-kernel/dtc/dtc.inc | 8 +++++---

1 file changed, 5 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/meta/recipes-kernel/dtc/dtc.inc

Quoted 3 lines

index 95023b6..0c409b0 100644

meta/recipes-kernel/dtc/dtc.inc +0 -0

[..]

Quoted 8 lines

meta/recipes-kernel/dtc/dtc.inc SECTION = "bootloader" · line 17

Quoted 3 lines
meta/recipes-kernel/dtc/dtc.inc +3 -0
+do_install () {
+     oe_runmake install
+}

I'm wondering if it makes sense to have base.bbclass do this the default do_install. Having a virtually empty recipe with only a do_install always makes me a bit uneasy.

The problem with that is DESTDIR is an automake convention.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#3 lore raw
Quoted 2 lines · Christopher Larson

The problem with that is DESTDIR is an automake convention.

Yes, outside of automake there's just too much variety to make providing defaults useful.

Ross