From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 1DF16E00744; Wed, 9 Jul 2014 05:44:25 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DECFFE00547 for ; Wed, 9 Jul 2014 05:44:22 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.5) with ESMTP id s69CiHl7011862 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 9 Jul 2014 05:44:17 -0700 (PDT) Received: from [128.224.56.48] (128.224.56.48) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.169.1; Wed, 9 Jul 2014 05:44:17 -0700 Message-ID: <53BD3920.8090603@windriver.com> Date: Wed, 9 Jul 2014 08:44:16 -0400 From: Bruce Ashfield User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "Dr. Markus Eich" , References: <53BD0DA4.50108@dfki.de> In-Reply-To: <53BD0DA4.50108@dfki.de> Subject: Re: How to select defconfig for kernel build with yocto/bitbake 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, 09 Jul 2014 12:44:25 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 14-07-09 05:38 AM, Dr. Markus Eich wrote: > Dear all, > > I work on the process to compile odroid xu kernel with yocto/bitbake > > In the kernel sources (from hardkernel) I have the corresponding > defconfig file, i.e. in the git folder > /arch/arm/configs/odroidxu_ubuntu_defconfig. > > How can I tell bitbake in my recipe to use "odroidxu_ubuntu_defconfig"? To trigger the oe-core kernel processing to use the defconfig, you need to put that defconfig in your SRC_URI. Which means you should grab a copy of that from the kernel tree, and in the same directory structure as your kernel recipe. See meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb for an example. Cheers, Bruce > > My recipe looks as follow: > > === > require recipes-kernel/linux/linux-yocto.inc > > KERNEL_IMAGETYPE = "uImage" > > COMPATIBLE_MACHINE = "odroid-xu" > > LINUX_VERSION = "3.4.91" > LINUX_VERSION_EXTENSION = "-custom" > > FILESEXTRAPATHS_prepend := "${THISDIR}/linux-hardkernel-3.4:" > > S = "${WORKDIR}/git" > > # from where to fetch the kernel > KERNEL_REPO_OWNER ??= "hardkernel" > KERNEL_REPO_URI ??= "git://github.com/${KERNEL_REPO_OWNER}/linux.git" > KBRANCH = "odroidxu-3.4.y" > > SRCREV = "${AUTOREV}" > > KV = "3.4.91" > PV = "${KV}+gitr${SRCPV}" > LOCALVERSION ?= "" > > > SRC_URI = " \ > ${KERNEL_REPO_URI};nocheckout=1;branch=${KBRANCH} \ > " > > PACKAGES =+ "kernel-headers" > FILES_kernel-headers = "${exec_prefix}/src/linux*" > === > > Cheers, > > Markus > > > >