All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] arm/opencsd: backport patch to fix build race
@ 2021-03-03 21:27 Ross Burton
  2021-03-03 21:27 ` [PATCH 2/2] kas: update meta-clang to use the gatesgarth branch Ross Burton
  2021-03-04  9:39 ` [meta-arm] [PATCH 1/2] arm/opencsd: backport patch to fix build race Ross Burton
  0 siblings, 2 replies; 4+ messages in thread
From: Ross Burton @ 2021-03-03 21:27 UTC (permalink / raw)
  To: meta-arm

Change-Id: I46ea9cfa5e149db000740b4a2c6730ced99340ef
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 ...ild-race-issue-32-reported-on-github.patch | 160 ++++++++++++++++++
 .../opencsd/opencsd_0.14.3.bb                 |   4 +-
 2 files changed, 163 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch

diff --git a/meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch b/meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch
new file mode 100644
index 0000000..8ebc788
--- /dev/null
+++ b/meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch
@@ -0,0 +1,160 @@
+Upstream-Status: Backport
+Signed-off-by: Ross Burton <ross.burton@arm.com>
+
+From b3eb31b79d6eee04020f0dc2ec5140ff5aa28282 Mon Sep 17 00:00:00 2001
+From: Mike Leach <mike.leach@linaro.org>
+Date: Mon, 16 Nov 2020 17:48:40 +0000
+Subject: [PATCH] build: Fix build race issue - #32 reported on github
+
+Issue reported of race when building tests. On a heavily loaded build
+machine the creation of the build directory could occur at the same time
+as compilation into that directory creating issue with finding object
+files.
+
+Reported-by: rossburton (github issue #32)
+Signed-off-by: Mike Leach <mike.leach@linaro.org>
+---
+ decoder/tests/build/linux/c_api_pkt_print_test/makefile | 6 +++---
+ decoder/tests/build/linux/echo_test_dcd_lib/makefile    | 6 +++---
+ decoder/tests/build/linux/mem_buffer_eg/makefile        | 6 +++---
+ decoder/tests/build/linux/snapshot_parser_lib/makefile  | 6 +++---
+ decoder/tests/build/linux/trc_pkt_lister/makefile       | 6 +++---
+ 5 files changed, 15 insertions(+), 15 deletions(-)
+
+diff --git a/decoder/tests/build/linux/c_api_pkt_print_test/makefile b/decoder/tests/build/linux/c_api_pkt_print_test/makefile
+index b0b5604..f1108e4 100644
+--- a/decoder/tests/build/linux/c_api_pkt_print_test/makefile
++++ b/decoder/tests/build/linux/c_api_pkt_print_test/makefile
+@@ -51,12 +51,12 @@ OBJECTS		=	$(BUILD_DIR)/c_api_pkt_print_test.o
+ LIBS		=	-L$(LIB_TARGET_DIR) -l$(LIB_BASE_NAME) -l$(LIB_CAPI_NAME) \
+ 				-L$(LIB_TEST_TARGET_DIR) -l_echo_test_dcd
+ 
+-all:  build_dir copy_libs
++all: copy_libs
+ 
+ test_app: 	$(BIN_TEST_TARGET_DIR)/$(PROG)
+ 
+ 
+- $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS)
++ $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS) | build_dir
+ 			mkdir -p  $(BIN_TEST_TARGET_DIR)
+ 			$(LINKER) $(LDFLAGS) $(OBJECTS) -Wl,--start-group $(LIBS) -Wl,--end-group -o $(BIN_TEST_TARGET_DIR)/$(PROG)
+ 			cp $(LIB_TARGET_DIR)/*.so .
+@@ -77,7 +77,7 @@ DEPS := $(OBJECTS:%.o=%.d)
+ -include $(DEPS)
+ 
+ ## object compile
+-$(BUILD_DIR)/%.o : %.c
++$(BUILD_DIR)/%.o : %.c | build_dir
+ 			$(CC) $(CFLAGS) $(CC_INCLUDES) -MMD $< -o $@ 
+ 
+ #### clean
+diff --git a/decoder/tests/build/linux/echo_test_dcd_lib/makefile b/decoder/tests/build/linux/echo_test_dcd_lib/makefile
+index 31ca38f..8c255a8 100644
+--- a/decoder/tests/build/linux/echo_test_dcd_lib/makefile
++++ b/decoder/tests/build/linux/echo_test_dcd_lib/makefile
+@@ -48,9 +48,9 @@ CC_INCLUDES	=	\
+ OBJECTS		=	$(BUILD_DIR)/ext_dcd_echo_test.o \
+ 				$(BUILD_DIR)/ext_dcd_echo_test_fact.o
+ 
+-all:  build_dir $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
++all: $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
+ 
+-$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS)
++$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS) | build_dir
+ 	mkdir -p $(LIB_TEST_TARGET_DIR)
+ 	$(LIB) $(ARFLAGS) $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a $(OBJECTS)
+ 
+@@ -64,7 +64,7 @@ DEPS := $(OBJECTS:%.o=%.d)
+ -include $(DEPS)
+ 
+ ## object compile
+-$(BUILD_DIR)/%.o : %.c
++$(BUILD_DIR)/%.o : %.c | build_dir
+ 			$(CC) $(CFLAGS) $(CC_INCLUDES) -MMD $< -o $@ 
+ 
+ #### clean
+diff --git a/decoder/tests/build/linux/mem_buffer_eg/makefile b/decoder/tests/build/linux/mem_buffer_eg/makefile
+index 850ed49..7939521 100644
+--- a/decoder/tests/build/linux/mem_buffer_eg/makefile
++++ b/decoder/tests/build/linux/mem_buffer_eg/makefile
+@@ -51,12 +51,12 @@ OBJECTS		=	$(BUILD_DIR)/mem_buff_demo.o
+ LIBS		=	-L$(LIB_TEST_TARGET_DIR) -lsnapshot_parser \
+ 				-L$(LIB_TARGET_DIR) -l$(LIB_BASE_NAME)
+ 
+-all:  build_dir copy_libs
++all: copy_libs
+ 
+ test_app: $(BIN_TEST_TARGET_DIR)/$(PROG)
+ 
+ 
+- $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS)
++ $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS) | build_dir
+ 			mkdir -p  $(BIN_TEST_TARGET_DIR)
+ 			$(LINKER) $(LDFLAGS) $(OBJECTS) -Wl,--start-group $(LIBS) -Wl,--end-group -o $(BIN_TEST_TARGET_DIR)/$(PROG)
+ 
+@@ -76,7 +76,7 @@ DEPS := $(OBJECTS:%.o=%.d)
+ -include $(DEPS)
+ 
+ ## object compile
+-$(BUILD_DIR)/%.o : %.cpp
++$(BUILD_DIR)/%.o : %.cpp | build_dir
+ 			$(CXX) $(CXXFLAGS) $(CXX_INCLUDES) -MMD $< -o $@
+ 
+ #### clean
+diff --git a/decoder/tests/build/linux/snapshot_parser_lib/makefile b/decoder/tests/build/linux/snapshot_parser_lib/makefile
+index 295bab6..ae566eb 100644
+--- a/decoder/tests/build/linux/snapshot_parser_lib/makefile
++++ b/decoder/tests/build/linux/snapshot_parser_lib/makefile
+@@ -63,9 +63,9 @@ OBJECTS=$(BUILD_DIR)/device_info.o \
+ 		$(BUILD_DIR)/snapshot_reader.o \
+ 		$(BUILD_DIR)/ss_to_dcdtree.o
+ 
+-all: build_dir $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
++all: $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
+ 
+-$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS)
++$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS) | build_dir
+ 	mkdir -p $(LIB_TEST_TARGET_DIR)
+ 	$(LIB) $(ARFLAGS) $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a $(OBJECTS)
+ 
+@@ -80,7 +80,7 @@ DEPS := $(OBJECTS:%.o=%.d)
+ -include $(DEPS)
+ 
+ ## object compile
+-$(BUILD_DIR)/%.o : %.cpp
++$(BUILD_DIR)/%.o : %.cpp | build_dir
+ 	$(CXX) $(CXXFLAGS) $(CXX_INCLUDES) -MMD $< -o $@
+ 
+ ### clean
+diff --git a/decoder/tests/build/linux/trc_pkt_lister/makefile b/decoder/tests/build/linux/trc_pkt_lister/makefile
+index 54ce27d..1027964 100644
+--- a/decoder/tests/build/linux/trc_pkt_lister/makefile
++++ b/decoder/tests/build/linux/trc_pkt_lister/makefile
+@@ -51,12 +51,12 @@ OBJECTS		=	$(BUILD_DIR)/trc_pkt_lister.o
+ LIBS		=	-L$(LIB_TEST_TARGET_DIR) -lsnapshot_parser \
+ 				-L$(LIB_TARGET_DIR) -l$(LIB_BASE_NAME)
+ 
+-all:  build_dir copy_libs
++all: copy_libs
+ 
+ test_app: $(BIN_TEST_TARGET_DIR)/$(PROG)
+ 
+ 
+- $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS)
++ $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS) | build_dir
+ 			mkdir -p  $(BIN_TEST_TARGET_DIR)
+ 			$(LINKER) $(LDFLAGS) $(OBJECTS) -Wl,--start-group $(LIBS) -Wl,--end-group -o $(BIN_TEST_TARGET_DIR)/$(PROG)
+ 
+@@ -76,7 +76,7 @@ DEPS := $(OBJECTS:%.o=%.d)
+ -include $(DEPS)
+ 
+ ## object compile
+-$(BUILD_DIR)/%.o : %.cpp
++$(BUILD_DIR)/%.o : %.cpp | build_dir
+ 			$(CXX) $(CXXFLAGS) $(CXX_INCLUDES) -MMD $< -o $@
+ 
+ #### clean
+-- 
+2.25.1
+
diff --git a/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb b/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb
index bec3dc7..e126f6b 100644
--- a/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb
+++ b/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb
@@ -3,7 +3,9 @@ HOMEPAGE = "https://github.com/Linaro/OpenCSD"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=ad8cb685eb324d2fa2530b985a43f3e5"
 
-SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=https;branch=master"
+SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=https;branch=master \
+           file://0001-build-Fix-build-race-issue-32-reported-on-github.patch"
+
 SRCREV = "957d18219d162f52ebe2426f32a4263ec10f357d"
 
 S = "${WORKDIR}/git"
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] kas: update meta-clang to use the gatesgarth branch
  2021-03-03 21:27 [PATCH 1/2] arm/opencsd: backport patch to fix build race Ross Burton
@ 2021-03-03 21:27 ` Ross Burton
  2021-03-04  9:39 ` [meta-arm] [PATCH 1/2] arm/opencsd: backport patch to fix build race Ross Burton
  1 sibling, 0 replies; 4+ messages in thread
From: Ross Burton @ 2021-03-03 21:27 UTC (permalink / raw)
  To: meta-arm

When the CI was written there wasn't a gatesgarth branch, but there is now
and it is needed as master meta-clang doesn't work with gatesgarth oe-core.

Change-Id: Ief06b6c5be11dd7fc77520f5601b662bdca52891
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 kas/clang.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kas/clang.yml b/kas/clang.yml
index 3c18c7a..1d71c15 100644
--- a/kas/clang.yml
+++ b/kas/clang.yml
@@ -4,8 +4,7 @@ header:
 repos:
   meta-clang:
     url: https://github.com/kraj/meta-clang
-    # This doesn't (yet) have a gatesgarth branch
-    refspec: master
+    refspec: gatesgarth
 
 local_conf_header:
   clang: |
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-arm] [PATCH 1/2] arm/opencsd: backport patch to fix build race
  2021-03-03 21:27 [PATCH 1/2] arm/opencsd: backport patch to fix build race Ross Burton
  2021-03-03 21:27 ` [PATCH 2/2] kas: update meta-clang to use the gatesgarth branch Ross Burton
@ 2021-03-04  9:39 ` Ross Burton
  2021-03-05 14:19   ` Jon Mason
  1 sibling, 1 reply; 4+ messages in thread
From: Ross Burton @ 2021-03-04  9:39 UTC (permalink / raw)
  To: meta-arm

These were for gatesgarth, apologies.

Ross

On Wed, 3 Mar 2021 at 21:27, Ross Burton via lists.yoctoproject.org
<ross=burtonini.com@lists.yoctoproject.org> wrote:
>
> Change-Id: I46ea9cfa5e149db000740b4a2c6730ced99340ef
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  ...ild-race-issue-32-reported-on-github.patch | 160 ++++++++++++++++++
>  .../opencsd/opencsd_0.14.3.bb                 |   4 +-
>  2 files changed, 163 insertions(+), 1 deletion(-)
>  create mode 100644 meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch
>
> diff --git a/meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch b/meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch
> new file mode 100644
> index 0000000..8ebc788
> --- /dev/null
> +++ b/meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch
> @@ -0,0 +1,160 @@
> +Upstream-Status: Backport
> +Signed-off-by: Ross Burton <ross.burton@arm.com>
> +
> +From b3eb31b79d6eee04020f0dc2ec5140ff5aa28282 Mon Sep 17 00:00:00 2001
> +From: Mike Leach <mike.leach@linaro.org>
> +Date: Mon, 16 Nov 2020 17:48:40 +0000
> +Subject: [PATCH] build: Fix build race issue - #32 reported on github
> +
> +Issue reported of race when building tests. On a heavily loaded build
> +machine the creation of the build directory could occur at the same time
> +as compilation into that directory creating issue with finding object
> +files.
> +
> +Reported-by: rossburton (github issue #32)
> +Signed-off-by: Mike Leach <mike.leach@linaro.org>
> +---
> + decoder/tests/build/linux/c_api_pkt_print_test/makefile | 6 +++---
> + decoder/tests/build/linux/echo_test_dcd_lib/makefile    | 6 +++---
> + decoder/tests/build/linux/mem_buffer_eg/makefile        | 6 +++---
> + decoder/tests/build/linux/snapshot_parser_lib/makefile  | 6 +++---
> + decoder/tests/build/linux/trc_pkt_lister/makefile       | 6 +++---
> + 5 files changed, 15 insertions(+), 15 deletions(-)
> +
> +diff --git a/decoder/tests/build/linux/c_api_pkt_print_test/makefile b/decoder/tests/build/linux/c_api_pkt_print_test/makefile
> +index b0b5604..f1108e4 100644
> +--- a/decoder/tests/build/linux/c_api_pkt_print_test/makefile
> ++++ b/decoder/tests/build/linux/c_api_pkt_print_test/makefile
> +@@ -51,12 +51,12 @@ OBJECTS            =       $(BUILD_DIR)/c_api_pkt_print_test.o
> + LIBS          =       -L$(LIB_TARGET_DIR) -l$(LIB_BASE_NAME) -l$(LIB_CAPI_NAME) \
> +                               -L$(LIB_TEST_TARGET_DIR) -l_echo_test_dcd
> +
> +-all:  build_dir copy_libs
> ++all: copy_libs
> +
> + test_app:     $(BIN_TEST_TARGET_DIR)/$(PROG)
> +
> +
> +- $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS)
> ++ $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS) | build_dir
> +                       mkdir -p  $(BIN_TEST_TARGET_DIR)
> +                       $(LINKER) $(LDFLAGS) $(OBJECTS) -Wl,--start-group $(LIBS) -Wl,--end-group -o $(BIN_TEST_TARGET_DIR)/$(PROG)
> +                       cp $(LIB_TARGET_DIR)/*.so .
> +@@ -77,7 +77,7 @@ DEPS := $(OBJECTS:%.o=%.d)
> + -include $(DEPS)
> +
> + ## object compile
> +-$(BUILD_DIR)/%.o : %.c
> ++$(BUILD_DIR)/%.o : %.c | build_dir
> +                       $(CC) $(CFLAGS) $(CC_INCLUDES) -MMD $< -o $@
> +
> + #### clean
> +diff --git a/decoder/tests/build/linux/echo_test_dcd_lib/makefile b/decoder/tests/build/linux/echo_test_dcd_lib/makefile
> +index 31ca38f..8c255a8 100644
> +--- a/decoder/tests/build/linux/echo_test_dcd_lib/makefile
> ++++ b/decoder/tests/build/linux/echo_test_dcd_lib/makefile
> +@@ -48,9 +48,9 @@ CC_INCLUDES  =       \
> + OBJECTS               =       $(BUILD_DIR)/ext_dcd_echo_test.o \
> +                               $(BUILD_DIR)/ext_dcd_echo_test_fact.o
> +
> +-all:  build_dir $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
> ++all: $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
> +
> +-$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS)
> ++$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS) | build_dir
> +       mkdir -p $(LIB_TEST_TARGET_DIR)
> +       $(LIB) $(ARFLAGS) $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a $(OBJECTS)
> +
> +@@ -64,7 +64,7 @@ DEPS := $(OBJECTS:%.o=%.d)
> + -include $(DEPS)
> +
> + ## object compile
> +-$(BUILD_DIR)/%.o : %.c
> ++$(BUILD_DIR)/%.o : %.c | build_dir
> +                       $(CC) $(CFLAGS) $(CC_INCLUDES) -MMD $< -o $@
> +
> + #### clean
> +diff --git a/decoder/tests/build/linux/mem_buffer_eg/makefile b/decoder/tests/build/linux/mem_buffer_eg/makefile
> +index 850ed49..7939521 100644
> +--- a/decoder/tests/build/linux/mem_buffer_eg/makefile
> ++++ b/decoder/tests/build/linux/mem_buffer_eg/makefile
> +@@ -51,12 +51,12 @@ OBJECTS            =       $(BUILD_DIR)/mem_buff_demo.o
> + LIBS          =       -L$(LIB_TEST_TARGET_DIR) -lsnapshot_parser \
> +                               -L$(LIB_TARGET_DIR) -l$(LIB_BASE_NAME)
> +
> +-all:  build_dir copy_libs
> ++all: copy_libs
> +
> + test_app: $(BIN_TEST_TARGET_DIR)/$(PROG)
> +
> +
> +- $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS)
> ++ $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS) | build_dir
> +                       mkdir -p  $(BIN_TEST_TARGET_DIR)
> +                       $(LINKER) $(LDFLAGS) $(OBJECTS) -Wl,--start-group $(LIBS) -Wl,--end-group -o $(BIN_TEST_TARGET_DIR)/$(PROG)
> +
> +@@ -76,7 +76,7 @@ DEPS := $(OBJECTS:%.o=%.d)
> + -include $(DEPS)
> +
> + ## object compile
> +-$(BUILD_DIR)/%.o : %.cpp
> ++$(BUILD_DIR)/%.o : %.cpp | build_dir
> +                       $(CXX) $(CXXFLAGS) $(CXX_INCLUDES) -MMD $< -o $@
> +
> + #### clean
> +diff --git a/decoder/tests/build/linux/snapshot_parser_lib/makefile b/decoder/tests/build/linux/snapshot_parser_lib/makefile
> +index 295bab6..ae566eb 100644
> +--- a/decoder/tests/build/linux/snapshot_parser_lib/makefile
> ++++ b/decoder/tests/build/linux/snapshot_parser_lib/makefile
> +@@ -63,9 +63,9 @@ OBJECTS=$(BUILD_DIR)/device_info.o \
> +               $(BUILD_DIR)/snapshot_reader.o \
> +               $(BUILD_DIR)/ss_to_dcdtree.o
> +
> +-all: build_dir $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
> ++all: $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
> +
> +-$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS)
> ++$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS) | build_dir
> +       mkdir -p $(LIB_TEST_TARGET_DIR)
> +       $(LIB) $(ARFLAGS) $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a $(OBJECTS)
> +
> +@@ -80,7 +80,7 @@ DEPS := $(OBJECTS:%.o=%.d)
> + -include $(DEPS)
> +
> + ## object compile
> +-$(BUILD_DIR)/%.o : %.cpp
> ++$(BUILD_DIR)/%.o : %.cpp | build_dir
> +       $(CXX) $(CXXFLAGS) $(CXX_INCLUDES) -MMD $< -o $@
> +
> + ### clean
> +diff --git a/decoder/tests/build/linux/trc_pkt_lister/makefile b/decoder/tests/build/linux/trc_pkt_lister/makefile
> +index 54ce27d..1027964 100644
> +--- a/decoder/tests/build/linux/trc_pkt_lister/makefile
> ++++ b/decoder/tests/build/linux/trc_pkt_lister/makefile
> +@@ -51,12 +51,12 @@ OBJECTS            =       $(BUILD_DIR)/trc_pkt_lister.o
> + LIBS          =       -L$(LIB_TEST_TARGET_DIR) -lsnapshot_parser \
> +                               -L$(LIB_TARGET_DIR) -l$(LIB_BASE_NAME)
> +
> +-all:  build_dir copy_libs
> ++all: copy_libs
> +
> + test_app: $(BIN_TEST_TARGET_DIR)/$(PROG)
> +
> +
> +- $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS)
> ++ $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS) | build_dir
> +                       mkdir -p  $(BIN_TEST_TARGET_DIR)
> +                       $(LINKER) $(LDFLAGS) $(OBJECTS) -Wl,--start-group $(LIBS) -Wl,--end-group -o $(BIN_TEST_TARGET_DIR)/$(PROG)
> +
> +@@ -76,7 +76,7 @@ DEPS := $(OBJECTS:%.o=%.d)
> + -include $(DEPS)
> +
> + ## object compile
> +-$(BUILD_DIR)/%.o : %.cpp
> ++$(BUILD_DIR)/%.o : %.cpp | build_dir
> +                       $(CXX) $(CXXFLAGS) $(CXX_INCLUDES) -MMD $< -o $@
> +
> + #### clean
> +--
> +2.25.1
> +
> diff --git a/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb b/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb
> index bec3dc7..e126f6b 100644
> --- a/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb
> +++ b/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb
> @@ -3,7 +3,9 @@ HOMEPAGE = "https://github.com/Linaro/OpenCSD"
>  LICENSE = "BSD-3-Clause"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=ad8cb685eb324d2fa2530b985a43f3e5"
>
> -SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=https;branch=master"
> +SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=https;branch=master \
> +           file://0001-build-Fix-build-race-issue-32-reported-on-github.patch"
> +
>  SRCREV = "957d18219d162f52ebe2426f32a4263ec10f357d"
>
>  S = "${WORKDIR}/git"
> --
> 2.25.1
>
>
> 
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-arm] [PATCH 1/2] arm/opencsd: backport patch to fix build race
  2021-03-04  9:39 ` [meta-arm] [PATCH 1/2] arm/opencsd: backport patch to fix build race Ross Burton
@ 2021-03-05 14:19   ` Jon Mason
  0 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2021-03-05 14:19 UTC (permalink / raw)
  To: Ross Burton; +Cc: meta-arm

On Thu, Mar 04, 2021 at 09:39:43AM +0000, Ross Burton wrote:
> These were for gatesgarth, apologies.

Series applied to the gatesgarth branch

Thanks,
Jon

> 
> Ross
> 
> On Wed, 3 Mar 2021 at 21:27, Ross Burton via lists.yoctoproject.org
> <ross=burtonini.com@lists.yoctoproject.org> wrote:
> >
> > Change-Id: I46ea9cfa5e149db000740b4a2c6730ced99340ef
> > Signed-off-by: Ross Burton <ross.burton@arm.com>
> > ---
> >  ...ild-race-issue-32-reported-on-github.patch | 160 ++++++++++++++++++
> >  .../opencsd/opencsd_0.14.3.bb                 |   4 +-
> >  2 files changed, 163 insertions(+), 1 deletion(-)
> >  create mode 100644 meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch
> >
> > diff --git a/meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch b/meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch
> > new file mode 100644
> > index 0000000..8ebc788
> > --- /dev/null
> > +++ b/meta-arm/recipes-devtools/opencsd/files/0001-build-Fix-build-race-issue-32-reported-on-github.patch
> > @@ -0,0 +1,160 @@
> > +Upstream-Status: Backport
> > +Signed-off-by: Ross Burton <ross.burton@arm.com>
> > +
> > +From b3eb31b79d6eee04020f0dc2ec5140ff5aa28282 Mon Sep 17 00:00:00 2001
> > +From: Mike Leach <mike.leach@linaro.org>
> > +Date: Mon, 16 Nov 2020 17:48:40 +0000
> > +Subject: [PATCH] build: Fix build race issue - #32 reported on github
> > +
> > +Issue reported of race when building tests. On a heavily loaded build
> > +machine the creation of the build directory could occur at the same time
> > +as compilation into that directory creating issue with finding object
> > +files.
> > +
> > +Reported-by: rossburton (github issue #32)
> > +Signed-off-by: Mike Leach <mike.leach@linaro.org>
> > +---
> > + decoder/tests/build/linux/c_api_pkt_print_test/makefile | 6 +++---
> > + decoder/tests/build/linux/echo_test_dcd_lib/makefile    | 6 +++---
> > + decoder/tests/build/linux/mem_buffer_eg/makefile        | 6 +++---
> > + decoder/tests/build/linux/snapshot_parser_lib/makefile  | 6 +++---
> > + decoder/tests/build/linux/trc_pkt_lister/makefile       | 6 +++---
> > + 5 files changed, 15 insertions(+), 15 deletions(-)
> > +
> > +diff --git a/decoder/tests/build/linux/c_api_pkt_print_test/makefile b/decoder/tests/build/linux/c_api_pkt_print_test/makefile
> > +index b0b5604..f1108e4 100644
> > +--- a/decoder/tests/build/linux/c_api_pkt_print_test/makefile
> > ++++ b/decoder/tests/build/linux/c_api_pkt_print_test/makefile
> > +@@ -51,12 +51,12 @@ OBJECTS            =       $(BUILD_DIR)/c_api_pkt_print_test.o
> > + LIBS          =       -L$(LIB_TARGET_DIR) -l$(LIB_BASE_NAME) -l$(LIB_CAPI_NAME) \
> > +                               -L$(LIB_TEST_TARGET_DIR) -l_echo_test_dcd
> > +
> > +-all:  build_dir copy_libs
> > ++all: copy_libs
> > +
> > + test_app:     $(BIN_TEST_TARGET_DIR)/$(PROG)
> > +
> > +
> > +- $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS)
> > ++ $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS) | build_dir
> > +                       mkdir -p  $(BIN_TEST_TARGET_DIR)
> > +                       $(LINKER) $(LDFLAGS) $(OBJECTS) -Wl,--start-group $(LIBS) -Wl,--end-group -o $(BIN_TEST_TARGET_DIR)/$(PROG)
> > +                       cp $(LIB_TARGET_DIR)/*.so .
> > +@@ -77,7 +77,7 @@ DEPS := $(OBJECTS:%.o=%.d)
> > + -include $(DEPS)
> > +
> > + ## object compile
> > +-$(BUILD_DIR)/%.o : %.c
> > ++$(BUILD_DIR)/%.o : %.c | build_dir
> > +                       $(CC) $(CFLAGS) $(CC_INCLUDES) -MMD $< -o $@
> > +
> > + #### clean
> > +diff --git a/decoder/tests/build/linux/echo_test_dcd_lib/makefile b/decoder/tests/build/linux/echo_test_dcd_lib/makefile
> > +index 31ca38f..8c255a8 100644
> > +--- a/decoder/tests/build/linux/echo_test_dcd_lib/makefile
> > ++++ b/decoder/tests/build/linux/echo_test_dcd_lib/makefile
> > +@@ -48,9 +48,9 @@ CC_INCLUDES  =       \
> > + OBJECTS               =       $(BUILD_DIR)/ext_dcd_echo_test.o \
> > +                               $(BUILD_DIR)/ext_dcd_echo_test_fact.o
> > +
> > +-all:  build_dir $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
> > ++all: $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
> > +
> > +-$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS)
> > ++$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS) | build_dir
> > +       mkdir -p $(LIB_TEST_TARGET_DIR)
> > +       $(LIB) $(ARFLAGS) $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a $(OBJECTS)
> > +
> > +@@ -64,7 +64,7 @@ DEPS := $(OBJECTS:%.o=%.d)
> > + -include $(DEPS)
> > +
> > + ## object compile
> > +-$(BUILD_DIR)/%.o : %.c
> > ++$(BUILD_DIR)/%.o : %.c | build_dir
> > +                       $(CC) $(CFLAGS) $(CC_INCLUDES) -MMD $< -o $@
> > +
> > + #### clean
> > +diff --git a/decoder/tests/build/linux/mem_buffer_eg/makefile b/decoder/tests/build/linux/mem_buffer_eg/makefile
> > +index 850ed49..7939521 100644
> > +--- a/decoder/tests/build/linux/mem_buffer_eg/makefile
> > ++++ b/decoder/tests/build/linux/mem_buffer_eg/makefile
> > +@@ -51,12 +51,12 @@ OBJECTS            =       $(BUILD_DIR)/mem_buff_demo.o
> > + LIBS          =       -L$(LIB_TEST_TARGET_DIR) -lsnapshot_parser \
> > +                               -L$(LIB_TARGET_DIR) -l$(LIB_BASE_NAME)
> > +
> > +-all:  build_dir copy_libs
> > ++all: copy_libs
> > +
> > + test_app: $(BIN_TEST_TARGET_DIR)/$(PROG)
> > +
> > +
> > +- $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS)
> > ++ $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS) | build_dir
> > +                       mkdir -p  $(BIN_TEST_TARGET_DIR)
> > +                       $(LINKER) $(LDFLAGS) $(OBJECTS) -Wl,--start-group $(LIBS) -Wl,--end-group -o $(BIN_TEST_TARGET_DIR)/$(PROG)
> > +
> > +@@ -76,7 +76,7 @@ DEPS := $(OBJECTS:%.o=%.d)
> > + -include $(DEPS)
> > +
> > + ## object compile
> > +-$(BUILD_DIR)/%.o : %.cpp
> > ++$(BUILD_DIR)/%.o : %.cpp | build_dir
> > +                       $(CXX) $(CXXFLAGS) $(CXX_INCLUDES) -MMD $< -o $@
> > +
> > + #### clean
> > +diff --git a/decoder/tests/build/linux/snapshot_parser_lib/makefile b/decoder/tests/build/linux/snapshot_parser_lib/makefile
> > +index 295bab6..ae566eb 100644
> > +--- a/decoder/tests/build/linux/snapshot_parser_lib/makefile
> > ++++ b/decoder/tests/build/linux/snapshot_parser_lib/makefile
> > +@@ -63,9 +63,9 @@ OBJECTS=$(BUILD_DIR)/device_info.o \
> > +               $(BUILD_DIR)/snapshot_reader.o \
> > +               $(BUILD_DIR)/ss_to_dcdtree.o
> > +
> > +-all: build_dir $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
> > ++all: $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a
> > +
> > +-$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS)
> > ++$(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a: $(OBJECTS) | build_dir
> > +       mkdir -p $(LIB_TEST_TARGET_DIR)
> > +       $(LIB) $(ARFLAGS) $(LIB_TEST_TARGET_DIR)/$(LIB_NAME).a $(OBJECTS)
> > +
> > +@@ -80,7 +80,7 @@ DEPS := $(OBJECTS:%.o=%.d)
> > + -include $(DEPS)
> > +
> > + ## object compile
> > +-$(BUILD_DIR)/%.o : %.cpp
> > ++$(BUILD_DIR)/%.o : %.cpp | build_dir
> > +       $(CXX) $(CXXFLAGS) $(CXX_INCLUDES) -MMD $< -o $@
> > +
> > + ### clean
> > +diff --git a/decoder/tests/build/linux/trc_pkt_lister/makefile b/decoder/tests/build/linux/trc_pkt_lister/makefile
> > +index 54ce27d..1027964 100644
> > +--- a/decoder/tests/build/linux/trc_pkt_lister/makefile
> > ++++ b/decoder/tests/build/linux/trc_pkt_lister/makefile
> > +@@ -51,12 +51,12 @@ OBJECTS            =       $(BUILD_DIR)/trc_pkt_lister.o
> > + LIBS          =       -L$(LIB_TEST_TARGET_DIR) -lsnapshot_parser \
> > +                               -L$(LIB_TARGET_DIR) -l$(LIB_BASE_NAME)
> > +
> > +-all:  build_dir copy_libs
> > ++all: copy_libs
> > +
> > + test_app: $(BIN_TEST_TARGET_DIR)/$(PROG)
> > +
> > +
> > +- $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS)
> > ++ $(BIN_TEST_TARGET_DIR)/$(PROG): $(OBJECTS) | build_dir
> > +                       mkdir -p  $(BIN_TEST_TARGET_DIR)
> > +                       $(LINKER) $(LDFLAGS) $(OBJECTS) -Wl,--start-group $(LIBS) -Wl,--end-group -o $(BIN_TEST_TARGET_DIR)/$(PROG)
> > +
> > +@@ -76,7 +76,7 @@ DEPS := $(OBJECTS:%.o=%.d)
> > + -include $(DEPS)
> > +
> > + ## object compile
> > +-$(BUILD_DIR)/%.o : %.cpp
> > ++$(BUILD_DIR)/%.o : %.cpp | build_dir
> > +                       $(CXX) $(CXXFLAGS) $(CXX_INCLUDES) -MMD $< -o $@
> > +
> > + #### clean
> > +--
> > +2.25.1
> > +
> > diff --git a/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb b/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb
> > index bec3dc7..e126f6b 100644
> > --- a/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb
> > +++ b/meta-arm/recipes-devtools/opencsd/opencsd_0.14.3.bb
> > @@ -3,7 +3,9 @@ HOMEPAGE = "https://github.com/Linaro/OpenCSD"
> >  LICENSE = "BSD-3-Clause"
> >  LIC_FILES_CHKSUM = "file://LICENSE;md5=ad8cb685eb324d2fa2530b985a43f3e5"
> >
> > -SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=https;branch=master"
> > +SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=https;branch=master \
> > +           file://0001-build-Fix-build-race-issue-32-reported-on-github.patch"
> > +
> >  SRCREV = "957d18219d162f52ebe2426f32a4263ec10f357d"
> >
> >  S = "${WORKDIR}/git"
> > --
> > 2.25.1
> >
> >
> > 
> >

> 
> 
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-05 14:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 21:27 [PATCH 1/2] arm/opencsd: backport patch to fix build race Ross Burton
2021-03-03 21:27 ` [PATCH 2/2] kas: update meta-clang to use the gatesgarth branch Ross Burton
2021-03-04  9:39 ` [meta-arm] [PATCH 1/2] arm/opencsd: backport patch to fix build race Ross Burton
2021-03-05 14:19   ` Jon Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.