Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 32B79E00CC0; Fri, 1 Sep 2017 08:46:53 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [198.47.27.80 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from lelnx194.ext.ti.com (lelnx194.ext.ti.com [198.47.27.80]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 71866E007EF for ; Fri, 1 Sep 2017 08:46:51 -0700 (PDT) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v81Fkpel003368 for ; Fri, 1 Sep 2017 10:46:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1504280811; bh=UQ0XBbMfBmeK2CRC1tdXedRzoj1+Y+S7Ia3it0d7VWY=; h=From:To:CC:Subject:Date; b=WwOsVa6kILKObf3z1UchX/Dd0EaCOK6YNEvlMmLXukJcvpDsNrr4U7nHBawLO9bCC p/a+l6ieWGyOdVFuNKLP6QprUy+z9romCfPEq/tNauHn1XeLjduQTfycZMnkYckk8t Mpt8QEDl5chmAPtoXTITBLCYLJMkAUgBNUNkTHyo= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v81Fkpvf031157 for ; Fri, 1 Sep 2017 10:46:51 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Fri, 1 Sep 2017 10:46:51 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Fri, 1 Sep 2017 10:46:51 -0500 Received: from uda0271529.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v81Fkoe9027012; Fri, 1 Sep 2017 10:46:50 -0500 From: Hongmei Gou To: Date: Fri, 1 Sep 2017 11:46:43 -0400 Message-ID: <1504280803-12350-1-git-send-email-a0271529@ti.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Hongmei Gou Subject: [PATCH v2] starterware: add starterware for linux which installs header files only X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 15:46:53 -0000 Content-Type: text/plain * starterware.inc is created to host the common information Signed-off-by: Hongmei Gou --- v2 change: Pass "--no-preserve=ownership" for cp in do_intall to avoid host contamination warnings recipes-bsp/starterware/starterware-rtos_git.bb | 22 ++-------------------- recipes-bsp/starterware/starterware.inc | 21 +++++++++++++++++++++ recipes-bsp/starterware/starterware_git.bb | 16 ++++++++++++++++ 3 files changed, 39 insertions(+), 20 deletions(-) create mode 100644 recipes-bsp/starterware/starterware.inc create mode 100644 recipes-bsp/starterware/starterware_git.bb diff --git a/recipes-bsp/starterware/starterware-rtos_git.bb b/recipes-bsp/starterware/starterware-rtos_git.bb index 5584cb2..88176bb 100644 --- a/recipes-bsp/starterware/starterware-rtos_git.bb +++ b/recipes-bsp/starterware/starterware-rtos_git.bb @@ -1,28 +1,10 @@ -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://Makefile;beginline=1;endline=35;md5=286cbb5dce3e348294b6b025cff969b3" +require starterware.inc -COMPATIBLE_MACHINE = "ti33x|ti43x" DEPENDS = "gcc-arm-none-eabi-native" require recipes-ti/includes/ti-paths.inc -PACKAGE_ARCH = "${MACHINE_ARCH}" - -STARTERWARE_GIT_URI = "git://git.ti.com/keystone-rtos/starterware.git" -STARTERWARE_GIT_PROTOCOL = "git" -STARTERWARE_GIT_BRANCH = "master" - -# Below commit ID corresponds to "DEV.STARTERWARE.PROCSDK.02.01.01.03A" -STARTERWARE_SRCREV = "08f65ae3d5ccd19fbaf36040a99de971b685d144" - -BRANCH = "${STARTERWARE_GIT_BRANCH}" -SRC_URI = "${STARTERWARE_GIT_URI};protocol=${STARTERWARE_GIT_PROTOCOL};branch=${BRANCH}" - -SRCREV = "${STARTERWARE_SRCREV}" -PV = "02.01.01.03A" -PR = "r0" - -S = "${WORKDIR}/git" +PR = "${INC_PR}.0" PARTNO_ti33x = "am335x" PARTNO_ti43x = "am437x" diff --git a/recipes-bsp/starterware/starterware.inc b/recipes-bsp/starterware/starterware.inc new file mode 100644 index 0000000..c5d7655 --- /dev/null +++ b/recipes-bsp/starterware/starterware.inc @@ -0,0 +1,21 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://Makefile;beginline=1;endline=35;md5=286cbb5dce3e348294b6b025cff969b3" + +COMPATIBLE_MACHINE = "ti33x|ti43x" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +STARTERWARE_GIT_URI = "git://git.ti.com/keystone-rtos/starterware.git" +STARTERWARE_GIT_PROTOCOL = "git" +STARTERWARE_GIT_BRANCH = "master" + +# Below commit ID corresponds to "DEV.STARTERWARE.PROCSDK.02.01.01.03A" +STARTERWARE_SRCREV = "08f65ae3d5ccd19fbaf36040a99de971b685d144" + +BRANCH = "${STARTERWARE_GIT_BRANCH}" +SRC_URI = "${STARTERWARE_GIT_URI};protocol=${STARTERWARE_GIT_PROTOCOL};branch=${BRANCH}" + +SRCREV = "${STARTERWARE_SRCREV}" +PV = "02.01.01.03A" +INC_PR = "r0" + +S = "${WORKDIR}/git" diff --git a/recipes-bsp/starterware/starterware_git.bb b/recipes-bsp/starterware/starterware_git.bb new file mode 100644 index 0000000..3adfac3 --- /dev/null +++ b/recipes-bsp/starterware/starterware_git.bb @@ -0,0 +1,16 @@ +require starterware.inc + +PR = "${INC_PR}.0" + +ALLOW_EMPTY_${PN} = "1" + +CLEANBROKEN = "1" + +do_compile() { + : +} + +do_install () { + install -d ${D}${includedir}/ti/starterware + find . -name "*.h" -type f | xargs -I {} cp --parents --no-preserve=ownership {} ${D}${includedir}/ti/starterware +} -- 1.9.1