This repository was archived by the owner on Aug 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ acpica@core
22acpitables@refkit-extra
33btspeaker@refkit-extra
44caffe@refkit-extra
5+ darknet@refkit-extra
56household-objects-database-msgs@ros-layer
67hdf5@refkit-extra
78leveldb@openembedded-layer
Original file line number Diff line number Diff line change 1+ SUMMARY = "Darknet: Open Source Neural Networks in C"
2+ DESCRIPTION = "Darknet is an open source neural network framework written in C."
3+ HOMEPAGE = "http://pjreddie.com/darknet/"
4+ SECTION = "libs"
5+ PRIORITY = "optional"
6+ LICENSE = "PD"
7+ PR = "r0"
8+
9+ LIC_FILES_CHKSUM = "file://LICENSE;md5=4714f70f7f315d04508e3fd63d9b9232"
10+
11+ SRC_URI = " \
12+ git://github.com/pjreddie/darknet.git;protocol=https \
13+ file://0001-Makefile-added-a-soname-to-the-libdarknet.so.patch \
14+ "
15+
16+ SRCREV = "fbd48ab606dd91f076eaa68588f285c1d5f436fb"
17+
18+ S = "${WORKDIR} /git"
19+
20+ inherit pkgconfig
21+
22+ PACKAGE_BEFORE_PN = "${PN} -data"
23+
24+ EXTRA_OEMAKE = " \
25+ 'CC=${CC} ' 'RANLIB=${RANLIB} ' 'AR=${AR} ' \
26+ 'CFLAGS=${CFLAGS} -I${S} /include -DWITHOUT_XATTR -fPIC -Wall -Wno-unknown-pragmas -Wfatal-errors' \
27+ 'BUILDDIR=${S} ' \
28+ 'LDFLAGS=${LDFLAGS} -lm -pthread' \
29+ 'OPENMP=1' \
30+ "
31+
32+ do_install () {
33+ install -d ${D}${bindir}
34+ install -d ${D}${libdir}
35+ install -d ${D}${datadir} /${PN} /data
36+ install -d ${D}${datadir} /${PN} /cfg
37+ install ${S} /darknet ${D}${bindir}
38+ install ${S} /libdarknet . so . * ${D}${libdir}
39+ ln -sr ${D}${libdir} /libdarknet . so .0.0.1 ${D}${libdir} /libdarknet . so .0
40+ ln -sr ${D}${libdir} /libdarknet . so .0 ${D}${libdir} /libdarknet . so
41+
42+ # include subdirectories
43+ cp -r ${S} /data /* ${D}${datadir} /${PN} /data
44+ cp -r ${S} /cfg /* ${D}${datadir} /${PN} /cfg
45+ }
46+
47+ FILES_${PN} -data = "${datadir} "
Original file line number Diff line number Diff line change 1+ From 109692bce53087e15259f7302b398f7a6cf2e57a Mon Sep 17 00:00:00 2001
2+ From: Ismo Puustinen <ismo.puustinen@intel.com>
3+ Date: Thu, 3 Aug 2017 13:20:27 +0300
4+ Subject: [PATCH] Makefile: added a soname to the libdarknet.so.
5+
6+ Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
7+ ---
8+ Makefile | 4 ++--
9+ 1 file changed, 2 insertions(+), 2 deletions(-)
10+
11+ diff --git a/Makefile b/Makefile
12+ index b0a9f1c..116428b 100644
13+ --- a/Makefile
14+ +++ b/Makefile
15+ @@ -79,7 +79,7 @@ $(ALIB): $(OBJS)
16+ $(AR) $(ARFLAGS) $@ $^
17+
18+ $(SLIB): $(OBJS)
19+ - $(CC) $(CFLAGS) -shared $^ -o $@ $(LDFLAGS)
20+ + $(CC) $(CFLAGS) -shared -Wl,-soname,$(SLIB).0 $^ -o $@.0.0.1 $(LDFLAGS)
21+
22+ $(OBJDIR)%.o: %.c $(DEPS)
23+ $(CC) $(COMMON) $(CFLAGS) -c $< -o $@
24+ @@ -97,5 +97,5 @@ results:
25+ .PHONY: clean
26+
27+ clean:
28+ - rm -rf $(OBJS) $(SLIB) $(ALIB) $(EXEC) $(EXECOBJ)
29+ + rm -rf $(OBJS) $(SLIB).0.0.1 $(ALIB) $(EXEC) $(EXECOBJ)
30+
31+ - -
32+ 2.13.4
33+
You can’t perform that action at this time.
0 commit comments