Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 54992E00B93; Mon, 15 Oct 2018 08:03:48 -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, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE 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 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (offougajoris[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.128.67 listed in list.dnswl.org] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6E2F5E00BBD for ; Mon, 15 Oct 2018 08:03:46 -0700 (PDT) Received: by mail-wm1-f67.google.com with SMTP id 193-v6so19962082wme.3 for ; Mon, 15 Oct 2018 08:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UkeBOo+ZZYxzQ7vIrZ0yVusjFGePBFB4noKba3tKIMw=; b=PkJO+A9sVhU5QNmqkOUulvmyFhA452nLvHdzr6dRWdNQiQjtevHx3CQyUA24edrLpZ 4Jo3akRFKF9S9cBrZmNNrY9YqQ61G9B2yczQpdhU3rHi2yqEixPaXhMmOYAkQZYtc4xR KdSMAY4Pxzm9qmpcvoZIYE8QxnYx5r5Qx1I4AXS3Jfbn14Agilxfdl6vcruexw0kJS6Q Ntcy0eJeuyDQw1Y4WXZDpj/QlOP0LArjhQcCQY5XCqZyuLNLL6zbM74NJ20rcatdVIeo 61AT/jiMp6UTzJe3xwr+3lD2Up3OqbY2mZMHDOogouBYTMYmid6W+owdJfIhZGMZHb+d 0oBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UkeBOo+ZZYxzQ7vIrZ0yVusjFGePBFB4noKba3tKIMw=; b=Y6wHvOKpQGS9Y9eqIHwTxkJnMpPv0I/MhzigETrWLAMsf96aS6MrVTtBLA3hEmk2Oo C4Hrmpy8CufRcRbS4ZyFpIxiAFAKuCtjW4DBuIeCsyehh4Njs7R7AcZmIXhkwePzIlQo hgLCzbzydUfJAOVeVxNBhKFyBi9inYZ86ubRgsdJYreU+FrmBl9KAQUoEBL2ZFlgYHFh DccuNV5CKTrtIn66eMzujZZbiR6ZZ4NWg+6z0yEiQ4jFwoJQbjZLNSav34YlVr9qit6E FUj2UGQ3jEbUblWDf7wXvzy5tCSgMwoOQSMR/0b1Ay+xyrN4Hk9s2H2AhkYfgKXRcJFm XTMQ== X-Gm-Message-State: ABuFfoiJXvllL4tf2qEDp1WxyRTdhpoCHyrM91kAMqwmrtCcbLV6QPJc liKi4BF2XxQtYAD/dvaiSe1vywneFiE= X-Google-Smtp-Source: ACcGV63TaGADDRPSQem5CJfPa0OoiyEo1ObSU5oX3Jqp4xJXcnLQuz9qUhAFoD54g8DgBIYkCE5xQQ== X-Received: by 2002:a1c:9192:: with SMTP id t140-v6mr13853168wmd.95.1539615825260; Mon, 15 Oct 2018 08:03:45 -0700 (PDT) Received: from NXW20X.zeus.local ([37.58.205.20]) by smtp.gmail.com with ESMTPSA id i15-v6sm8955241wro.58.2018.10.15.08.03.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 08:03:44 -0700 (PDT) From: Joris Offouga To: meta-freescale@yoctoproject.org Date: Mon, 15 Oct 2018 17:03:36 +0200 Message-Id: <20181015150336.4851-4-offougajoris@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181015150336.4851-1-offougajoris@gmail.com> References: <20181015150336.4851-1-offougajoris@gmail.com> Subject: [PATCH 3/3] Add recipe fw-utils for qoriq 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, 15 Oct 2018 15:03:48 -0000 Initial support for fw utils for qoriq Signed-off-by: Joris Offouga --- .../u-boot/u-boot-qoriq-fw-utils_2018.03.bb | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-qoriq-fw-utils_2018.03.bb diff --git a/recipes-bsp/u-boot/u-boot-qoriq-fw-utils_2018.03.bb b/recipes-bsp/u-boot/u-boot-qoriq-fw-utils_2018.03.bb new file mode 100644 index 00000000..ae47cb0d --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qoriq-fw-utils_2018.03.bb @@ -0,0 +1,45 @@ +require u-boot-qoriq-common_${PV}.inc + +SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" +DEPENDS = "mtd-utils" + +INSANE_SKIP_${PN} = "already-stripped" +EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1' +EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1' + +inherit uboot-config + +do_compile () { + oe_runmake ${UBOOT_MACHINE} + oe_runmake envtools +} + +do_install () { + install -d ${D}${base_sbindir} + install -d ${D}${sysconfdir} + install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv + install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv + + if [ -e ${WORKDIR}/fw_env.config ]; then + install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config + else + install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config + fi +} + +do_install_class-cross () { + install -d ${D}${bindir_cross} + install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv + install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv +} + +SYSROOT_PREPROCESS_FUNCS_class-cross = "uboot_fw_utils_cross" +uboot_fw_utils_cross() { + sysroot_stage_dir ${D}${bindir_cross} ${SYSROOT_DESTDIR}${bindir_cross} +} + +PROVIDES += "u-boot-fw-utils" +RPROVIDES_${PN} += "u-boot-fw-utils" + +PACKAGE_ARCH = "${MACHINE_ARCH}" +BBCLASSEXTEND = "cross" -- 2.17.1