diff mbox series

[isar-cip-core,2/3] recipes-core/ltp: refactor ltp recipe

Message ID 20220607135016.1856603-3-Vijaikumar_Kanagarajan@mentor.com (mailing list archive)
State New
Headers show
Series Update ltp | expand

Commit Message

Vijai Kumar K June 7, 2022, 1:50 p.m. UTC
Add ltp.inc file so that downstream users can build their own ltp version
using bits from isar-cip-core.

Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
---
 recipes-core/ltp/ltp-full_20220527.bb | 17 ++---------------
 recipes-core/ltp/ltp.inc              | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 15 deletions(-)
 create mode 100644 recipes-core/ltp/ltp.inc
diff mbox series

Patch

diff --git a/recipes-core/ltp/ltp-full_20220527.bb b/recipes-core/ltp/ltp-full_20220527.bb
index 5b40df1..a99f301 100644
--- a/recipes-core/ltp/ltp-full_20220527.bb
+++ b/recipes-core/ltp/ltp-full_20220527.bb
@@ -1,7 +1,7 @@ 
 #
 # CIP Core, generic profile
 #
-# Copyright (c) Siemens AG, 2020
+# Copyright (c) Siemens AG, 2022
 #
 # Authors:
 #  Quirin Gylstorff <quirin.gylstorff@siemens.com>
@@ -9,19 +9,6 @@ 
 # SPDX-License-Identifier: MIT
 #
 
-inherit dpkg
+require recipes-core/ltp/ltp.inc
 
-DESCRIPTION = "Linux Test project for CIP"
-
-SRC_URI = " \
-   https://github.com/linux-test-project/ltp/releases/download/${PV}/ltp-full-${PV}.tar.xz \
-   file://debian \
-   "
 SRC_URI[sha256sum] = "d635afb5ec7b0de763ab50713baf9fbf65cf089da6e6768f816e4a166cbd17c4"
-
-
-do_prepare_build() {
-        cp -R ${WORKDIR}/debian ${S}
-        deb_create_compat
-        deb_add_changelog
-}
diff --git a/recipes-core/ltp/ltp.inc b/recipes-core/ltp/ltp.inc
new file mode 100644
index 0000000..d3350cb
--- /dev/null
+++ b/recipes-core/ltp/ltp.inc
@@ -0,0 +1,25 @@ 
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2022
+#
+# Authors:
+#  Quirin Gylstorff <quirin.gylstorff@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
+inherit dpkg
+
+DESCRIPTION = "Linux Test project for CIP"
+
+SRC_URI = " \
+   https://github.com/linux-test-project/ltp/releases/download/${PV}/ltp-full-${PV}.tar.xz \
+   file://debian \
+   "
+
+do_prepare_build() {
+        cp -R ${WORKDIR}/debian ${S}
+        deb_create_compat
+        deb_add_changelog
+}