From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BD1F4E00D8E; Wed, 27 Apr 2016 06:05:06 -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,HTML_MESSAGE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -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 X-Greylist: delayed 61 seconds by postgrey-1.32 at yocto-www; Wed, 27 Apr 2016 06:05:04 PDT Received: from mailrelay8.public.one.com (mailrelay8.public.one.com [91.198.169.216]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D8B87E00D86 for ; Wed, 27 Apr 2016 06:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=visionweeding.com; s=20140924; h=from:subject:date:message-id:to:mime-version:content-type:in-reply-to: references; bh=HWhaKMQ6jqulEK85eODeGuZ+RyqnTF8hxYrpX9z5LrQ=; b=bwa79lh/whs9vlqBW+uzsKWBUKZJTHvoc7DTHcBRx1P9VCxBiRxcSgkbDSU+r5Fim1wmYIbDqIXXl Gy/Khti/MfMh74ZbRNMeWbOT5i2tJV8dzLsWAYFIXhRVLBDNpJP3FKh78ZOWZGFvoy8aEPNUxxa83l xlOhKVWw3H6F3svk= X-HalOne-Cookie: 83cdcb7dcac5742544a68d2117e4782753940395 X-HalOne-ID: 822c9134-0c78-11e6-bb5b-b82a72cffc46 Received: from [192.168.1.194] (unknown [86.58.170.151]) by smtpfilter4.public.one.com (Halon Mail Gateway) with ESMTPSA for ; Wed, 27 Apr 2016 13:04:00 +0000 (UTC) To: yocto@yoctoproject.org References: <5720A4B2.2060509@visionweeding.com> <5720AEE7.8050905@mlbassoc.com> From: Lars Larsen Message-ID: <5720B8BF.6060000@visionweeding.com> Date: Wed, 27 Apr 2016 15:03:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <5720AEE7.8050905@mlbassoc.com> Subject: Re: Manipulating code and Building in offline environment X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2016 13:05:06 -0000 Content-Type: multipart/alternative; boundary="------------080009040804040103030109" --------------080009040804040103030109 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit On 2016-04-27 14:21, Gary Thomas wrote: > On 2016-04-27 13:38, Lars Larsen wrote: >> Hello >> >> I have 2 questions >> >> I have finally managed to build an image like I want it. >> >> >> I consists of a kernel. >> >> The ROS framework. >> >> And our proprietary software under git control >> >> >> What I want to achieve is the following: >> >> When online it should fetch the latest commit (or what ever >> branch/tag) from our git repo. >> >> It should be possible to take a laptop with a fresh checkout of all >> the software, go to the field where the is NO >> INTERNET access, and be able to patch our code on the spot ,and build >> fresh images, for the target. >> >> When online in our office environment all our own software is >> correctly checked out from our git repo. and build. >> Beautifully..... >> >> But when offline ( I disconnect the LAN ) I continually gets errors >> like “Failure expanding variable SRCPV” on our >> software modules. >> >> I have following in build/conf/local.conf >> >> >> BB_GENERATE_MIRROR_TARBALLS = "1" >> >> INHERIT += "own-mirrors" >> >> SOURCE_MIRROR_URL = "file://${DL_DIR}" >> >> >> and I experimented with BB_FETCH_PREMIRRORONLY = "1" >> >> with no appearent effect >> >> >> So question 1: >> >> How do I achieve the offline building. ? >> >> Is should be possible - right ? >> >> >> Question 2: >> >> Where in the tree is the checked out source code located, that >> bitbake compiles from. >> > > I do this all the time successfully. > > What is your target and what recipe(s) are having issues? > > Note setting BB_NO_NETWORK = "1" in local.conf can help diagnose these > issues > > Thanks for the quick response, I will be happy if you can help me solve this, since it's the last stone in our shoes before we go all in on yocto. My target (at this time) is just a plain vanilla X86 platform - i might change in the furture. The recipes that cause troubles, are those who examine my git repos one example, I have several made from this template ($BRANCH is set by envoking scripts): /DESCRIPTION = "Reflector deamon- from local GIT"// //# The initscript reflectord.sh that starts the deamon is installed with basic-framwork-files// //HOMEPAGE = "www.visionweeding.com"// //LICENSE = "CLOSED"// //FPE_PATH = "/opt/fpe"// //BRANCH ?="develop"// //SRC_URI = "git:///eserver/GIT/autodiscover/;branch=${BRANCH};;name=discover " // //SRCREV_discover= "${AUTOREV}"// //SRCREV_FORMAT= "discover"// //PV = "1.0.0+gitr${SRCPV}"// //S = "${WORKDIR}/git"// //inherit cmake// //FILESEXTRAPATHS_prepend := "${THISDIR}/files:"// //FILES_${PN} += "${FPE_PATH}/bin/reflectord \// // ${FPE_PATH}/bin/SearchBeam \// // "// //do_install_append() {// // // bbnote "Branch test BRANCH= ${BRANCH}"// //// // install -d ${D}${FPE_PATH}/bin// //// // rm -rf ${FPE_PATH}/bin/.debug/*// // install -d ${D}${sysconfdir}/init.d // // install -m 0755 ${WORKDIR}/SearchBeam ${D}${FPE_PATH}/bin // // install -m 0755 ${WORKDIR}/reflectord ${D}${FPE_PATH}/bin// //// }// // // / --------------080009040804040103030109 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit

On 2016-04-27 14:21, Gary Thomas wrote:
On 2016-04-27 13:38, Lars Larsen wrote:
Hello

I have 2 questions

I have finally managed to build an image like I want it.


I consists of a kernel.

The ROS framework.

And our proprietary software under git control


What I want to achieve is the following:

When online it should fetch the latest commit (or what ever branch/tag) from our git repo.

It should be possible to take a laptop with a fresh checkout of all the software, go to the field where the is NO
INTERNET access, and be able to patch our code on the spot ,and build fresh images, for the target.

When online in our office environment all our own software is correctly checked out from our git repo. and build.
Beautifully.....

But when offline ( I disconnect the LAN ) I continually gets errors like “Failure expanding variable SRCPV” on our
software modules.

I have following in build/conf/local.conf


BB_GENERATE_MIRROR_TARBALLS = "1"

INHERIT += "own-mirrors"

SOURCE_MIRROR_URL = "file://${DL_DIR}"


and I experimented with BB_FETCH_PREMIRRORONLY = "1"

with no appearent effect


So question 1:

How do I achieve the offline building. ?

Is should be possible - right ?


Question 2:

Where in the tree is the checked out source code located, that bitbake compiles from.


I do this all the time successfully.

What is your target and what recipe(s) are having issues?

Note setting BB_NO_NETWORK = "1" in local.conf can help diagnose these issues



Thanks for the quick response, I will be happy if you can help me solve this, since it's the last stone in our shoes before we go all in on yocto.


My target (at this time) is just a plain vanilla X86 platform - i might change in the furture.
The recipes that cause troubles, are those who examine my git repos
one example, I have several made from this template ($BRANCH is set by envoking scripts):

DESCRIPTION = "Reflector deamon-  from local GIT"
# The initscript reflectord.sh that starts the deamon is installed with basic-framwork-files
HOMEPAGE = "www.visionweeding.com"
LICENSE = "CLOSED"
FPE_PATH = "/opt/fpe"
BRANCH ?="develop"
SRC_URI =  "git:///eserver/GIT/autodiscover/;branch=${BRANCH};;name=discover " 
SRCREV_discover= "${AUTOREV}"
SRCREV_FORMAT= "discover"
PV = "1.0.0+gitr${SRCPV}"
S = "${WORKDIR}/git"
inherit cmake
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
FILES_${PN} += "${FPE_PATH}/bin/reflectord \
        ${FPE_PATH}/bin/SearchBeam \
  "
do_install_append() {

    bbnote "Branch test BRANCH= ${BRANCH}"
   
      install -d ${D}${FPE_PATH}/bin
   
    rm  -rf ${FPE_PATH}/bin/.debug/*
    install -d ${D}${sysconfdir}/init.d   
    install -m 0755 ${WORKDIR}/SearchBeam ${D}${FPE_PATH}/bin   
    install -m 0755 ${WORKDIR}/reflectord ${D}${FPE_PATH}/bin
    }


   


--------------080009040804040103030109--