From 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 10 Oct 2014 03:20:04 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- .../digitemp/digitemp/makefile-fix.patch | 20 ++++++++++++++++ meta-oe/recipes-support/digitemp/digitemp_3.6.0.bb | 27 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 meta-oe/recipes-support/digitemp/digitemp/makefile-fix.patch create mode 100644 meta-oe/recipes-support/digitemp/digitemp_3.6.0.bb (limited to 'meta-oe/recipes-support/digitemp') diff --git a/meta-oe/recipes-support/digitemp/digitemp/makefile-fix.patch b/meta-oe/recipes-support/digitemp/digitemp/makefile-fix.patch new file mode 100644 index 0000000000..c0d552d541 --- /dev/null +++ b/meta-oe/recipes-support/digitemp/digitemp/makefile-fix.patch @@ -0,0 +1,20 @@ +digitemp: allow override of CC and CFLAGS vars + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Otavio Salvador + +--- a/Makefile 2008-08-28 21:37:00.000000000 +0000 ++++ b/Makefile 2011-11-24 22:22:39.882511272 +0000 +@@ -11,8 +11,9 @@ + + VERSION = 3.6.0 + +-CC = gcc +-CFLAGS = -I./src -I./userial -O2 -Wall # -g ++CC ?= gcc ++CFLAGS ?= -O2 -Wall # -g ++CFLAGS += -I./src -I./userial + + OBJS = src/digitemp.o src/device_name.o src/ds2438.o + HDRS = src/digitemp.h src/device_name.h diff --git a/meta-oe/recipes-support/digitemp/digitemp_3.6.0.bb b/meta-oe/recipes-support/digitemp/digitemp_3.6.0.bb new file mode 100644 index 0000000000..2582820e68 --- /dev/null +++ b/meta-oe/recipes-support/digitemp/digitemp_3.6.0.bb @@ -0,0 +1,27 @@ +SUMMARY = "read temperature sensors in a 1-Wire net" +SECTION = "util" +DEPENDS = "libusb1" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=44fee82a1d2ed0676cf35478283e0aa0" + +PR = "r2" + +SRC_URI = "http://www.digitemp.com/software/linux/digitemp-${PV}.tar.gz \ + file://makefile-fix.patch" +SRC_URI[md5sum] = "9be2e48db37920f21925ae6e88f83b84" +SRC_URI[sha256sum] = "14cfc584cd3714fe8c9a2cdc8388be49e08b5e395d95e6bcd11d4410e2505ca2" + +EXTRA_OEMAKE = "ds9097 ds9097u \ + SYSTYPE='Linux' \ +" +# Fix GNU_HASH QA errors +TARGET_CC_ARCH += "${CFLAGS} ${LDFLAGS}" + +do_configure() { + rm -f digitemp_* +} + +do_install() { + install -d ${D}${sbindir} + install digitemp_* ${D}${sbindir} +} -- cgit v1.2.3-54-g00ecf