Skip to content

Commit d237dc9

Browse files
Merge pull request #130 from zboszor/fix-many-core-builds
Make build more stable with many CPU cores
2 parents e00fe3e + 37114a4 commit d237dc9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Make flatc generated dependencies have stronger guarantees
2+
3+
Signed-off-by: Zoltán Böszörményi <[email protected]>
4+
Upstream-Status: Inappropriate [oe specific]
5+
6+
--- libedgetpu-max-grouper/makefile_build/Makefile.orig 2025-11-21 11:20:08.881584923 +0100
7+
+++ libedgetpu-max-grouper/makefile_build/Makefile 2025-11-21 11:21:03.472355577 +0100
8+
@@ -191,13 +191,13 @@
9+
@echo "Compiling $<"
10+
@$(CXX) -DTHROTTLE_EDGE_TPU $(LIBEDGETPU_CXXFLAGS) $(LIBEDGETPU_INCLUDES) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@
11+
12+
-libedgetpu: | firmware $(LIBEDGETPU_FLATC_OBJS) $(LIBEDGETPU_CCOBJS) $(LIBEDGETPU_MAX_CCOBJS)
13+
+libedgetpu: $(LIBEDGETPU_FLATC_OBJS) | firmware $(LIBEDGETPU_CCOBJS) $(LIBEDGETPU_MAX_CCOBJS)
14+
@mkdir -p $(BUILDDIR)/direct/k8
15+
@echo "Building libedgetpu.so"
16+
@$(CXX) $(LIBEDGETPU_CCFLAGS) $(LIBEDGETPU_LDFLAGS) ${LDFLAGS} $(LIBEDGETPU_CCOBJS) $(LIBEDGETPU_MAX_CCOBJS) -o $(BUILDDIR)/direct/k8/libedgetpu.so.1.0
17+
@ln -sf $(BUILDDIR)/direct/k8/libedgetpu.so.1.0 $(BUILDDIR)/direct/k8/libedgetpu.so.1
18+
19+
-libedgetpu-throttled: | firmware $(LIBEDGETPU_FLATC_OBJS) $(LIBEDGETPU_CCOBJS) $(LIBEDGETPU_STD_CCOBJS)
20+
+libedgetpu-throttled: $(LIBEDGETPU_FLATC_OBJS) | firmware $(LIBEDGETPU_CCOBJS) $(LIBEDGETPU_STD_CCOBJS)
21+
@mkdir -p $(BUILDDIR)/throttled/k8
22+
@echo "Building throttled libedgetpu.so"
23+
@$(CXX) $(LIBEDGETPU_CCFLAGS) $(LIBEDGETPU_LDFLAGS) ${LDFLAGS} $(LIBEDGETPU_CCOBJS) $(LIBEDGETPU_STD_CCOBJS) -o $(BUILDDIR)/throttled/k8/libedgetpu.so.1.0

recipes-framework/coral/libedgetpu-common.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ SRC_URI = " \
1313
git://github.com/google-coral/libedgetpu.git;name=libedgetpu;branch="master";protocol=https \
1414
git://github.com/tensorflow/tensorflow.git;name=tensorflow;destsuffix=tensorflow;branch=r2.19;protocol=https \
1515
file://001-libedgetpu_makefile.patch \
16+
file://001-make-flatc-deps-normal.patch \
1617
file://001-flatbuffers.cmake.patch;patchdir=${UNPACKDIR}/tensorflow \
1718
"
1819

0 commit comments

Comments
 (0)