Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A1DE5E009DA; Mon, 17 Oct 2016 12:45:17 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 * [209.85.213.66 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 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 mail-vk0-f66.google.com (mail-vk0-f66.google.com [209.85.213.66]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1D47AE0095D for ; Mon, 17 Oct 2016 12:45:15 -0700 (PDT) Received: by mail-vk0-f66.google.com with SMTP id 83so7387229vkd.0 for ; Mon, 17 Oct 2016 12:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization; bh=jA3R+br8hrd5VvBkPMj/abrsOxq3ok7bYpkESLLjEwQ=; b=bhI6e/CZN6ZjweCQOHVdLsihQN1/IV82F11HcIp5+23iFwViQfVySyUgPnfabPC9eR Knc83ASyff6xmUL0n9vkvvC8TbgqfYy6UDMZK/8EZDU5Joxs9swjFxOTH26fG8bAkbTw YB0WadukKTVMrF4ah0cNc2tILrKyQ8EVzz1sqH1SbvkYjBGnVJK+HhtcHOtSUmOkxBA2 hZDUneStLJDR+W6e2RndYGBCBlFVWgWKVi+qfkWOhdR3mL3FXk6gJpFIZwHl7ZFSS6tf MS7toLbUn4Gve8sInekgmT6Znp0rbINsZuH1+2OEiGQw86XX7cKhvG0+4/q9fv0iEjSf 3VNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization; bh=jA3R+br8hrd5VvBkPMj/abrsOxq3ok7bYpkESLLjEwQ=; b=eqIAb6az+Jre66RCVzWtycijC64NTguQYygiLNSCuAwCDGWY5w4uMNp26Ki9pB359J 5cQi35U3YcQYUTH0Bf5fdWHNtZXPiztf3ixOhoqwj1s9Udqs8miXPRJcGFGXj4yFbrgo tU1nGjhrJN7Z8bA1rm5iD7RzumprOh9uOInxiNXRT3EAanJ0INe1wAECn9TWp6xOEB2q C9ccn0WzD2QdzVhA8PiGHG/P8xkFn1LZensYbmR5hK7ORjdZhwGmErmmbUqy5FzCJbAc mB7/ewQ2vgdtvkUIq0juggJfO1IZtswMZkXvJxusDK240zzWUCe+KBsUF+lMTyXrtnLg gfqQ== X-Gm-Message-State: AA6/9RmTZNqrgq0HoCn54mQ7IhB7cfeELLcL5VLdaPC/9+sE559kvuvLLCJArFykdPni9A== X-Received: by 10.31.149.73 with SMTP id x70mr18758980vkd.86.1476733515151; Mon, 17 Oct 2016 12:45:15 -0700 (PDT) Received: from monster.lab.ossystems.com.br ([187.23.155.148]) by smtp.gmail.com with ESMTPSA id 127sm12406849vkj.16.2016.10.17.12.45.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Oct 2016 12:45:14 -0700 (PDT) From: Fabio Berton To: meta-freescale@yoctoproject.org Date: Mon, 17 Oct 2016 17:44:51 -0200 Message-Id: <1476733491-27392-1-git-send-email-fabio.berton@ossystems.com.br> X-Mailer: git-send-email 2.1.4 Organization: O.S. Systems Software LTDA. Subject: [PATCH v2] classes/image_types_fsl: Add support to use uboot extlinux X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2016 19:45:17 -0000 Class that allows extlinux.conf generation for U-Boot use was introduced on OE-core commits: - 7c18abeb2a6ef8b7bb53aa92a9ee76bd465fada2 - 33df3a65f3e8e136811da715d0cc247ce66ae0ea We need to copy extlinux.conf file to boot partition inside /extlinux directory. This file will be only copied if UBOOT_EXTLINUX is set to 1. Signed-off-by: Fabio Berton --- classes/image_types_fsl.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 9a65747..399bcd0 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass @@ -139,6 +139,12 @@ _generate_boot_image() { fi done fi + + # Copy extlinux.conf to images that have U-Boot Extlinux support. + if [ "${UBOOT_EXTLINUX}" = "1" ]; then + mmd -i ${WORKDIR}/boot.img ::/extlinux + mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/extlinux.conf ::/extlinux/extlinux.conf + fi } # -- 2.1.4