From patchwork Thu Nov 14 12:42:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1194817 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PXSbPXcz"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47DLjz57ldz9sP6 for ; Thu, 14 Nov 2019 23:43:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AE7A525AD0; Thu, 14 Nov 2019 12:42:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MvNrezPwQTDB; Thu, 14 Nov 2019 12:42:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3C70125488; Thu, 14 Nov 2019 12:42:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5BEEB1BF97F for ; Thu, 14 Nov 2019 12:42:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 52AB689597 for ; Thu, 14 Nov 2019 12:42:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2hLWIAJYuMlW for ; Thu, 14 Nov 2019 12:42:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by whitealder.osuosl.org (Postfix) with ESMTPS id DCAB4895C6 for ; Thu, 14 Nov 2019 12:42:43 +0000 (UTC) Received: by mail-qt1-f196.google.com with SMTP id r20so6538778qtp.13 for ; Thu, 14 Nov 2019 04:42:43 -0800 (PST) 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=UzTRk5lPPfc/wAi0cSb+uks946mQPgRoLIrV4rX0ABY=; b=PXSbPXczExaBigPffctpkOOxsx/l2k4Pl0ldIe+VdpdmnbrUrV1WrxEcgd3M2IUDTP vU0nygQKn3QNl0xJkzP0ANcS/Wpi7trA63pO1YSRXvodDmlY5cQKhSnTCuUi85vfOhIR V9j/n7m6qqxDHu1q4HrkUxMHgTyOekNvga+HIcBRTp8UPgeXP4tAUzQ6g2Vkm1ZzyNQm nsSi0KVCpx03hLRQJ3hWth36gvIfXmXrp2vOSH9qrtOW07hwgLbs1ZPxsMG1lpoZK7Qi dLlP9MHIRBS0aghjxl/CNrxivSW2dgSwTsCW96DBnplvfulPPnyqHhtl4WpcKTeFr4cL slMQ== 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=UzTRk5lPPfc/wAi0cSb+uks946mQPgRoLIrV4rX0ABY=; b=aPtPPQyYYbqO9RJTlf0DiNuorxfyY8OqtGQTw1d66XjRWOzUFKJ6pg9T28N0vzKkb2 Vl7oN2KHSVYCewChXL5AgTqukmP2E2yZsQJ8Moo9gBCcQq5RxGuw2+uMgzH95xlQscHQ re2MNW8UwOcUijzubcr905ymHetoLja6pmo+SRoAzxzqRvyoJG+5DneuUnXOP3L/Ol1h dgYMtZmHNtR1o8W8KWIPkMgo8mWExOeYibFpJZq6H3ERjjMRaW/hyhg1dTaonM9QEpjQ ccaxLBXN29nBUECB66M1mckwhcVSq0q67WamUDZmxavPZxVpn8rFkSaJWXdSmBdpZ8Sv fV/Q== X-Gm-Message-State: APjAAAUMEdGbroTRCtdbxSb/uyPiHOmBvLVjrMaEj+IK0j9vXNuClhY8 egw1SoffGWi5NsxV6VMGOWHkg/Ub X-Google-Smtp-Source: APXvYqwEVeqsopK5TvaU09j9jNw1HH/xpxI627BsDBWcuPgu0q+vEwCy1bRBxEWc3z17yryQpgkyqA== X-Received: by 2002:ac8:7454:: with SMTP id h20mr8060205qtr.146.1573735362497; Thu, 14 Nov 2019 04:42:42 -0800 (PST) Received: from casantos.remote.csb (177.204.233.88.dynamic.adsl.gvt.net.br. [177.204.233.88]) by smtp.gmail.com with ESMTPSA id 97sm682805qtb.11.2019.11.14.04.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 04:42:41 -0800 (PST) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Thu, 14 Nov 2019 09:42:15 -0300 Message-Id: <20191114124215.12985-6-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20191114124215.12985-1-unixmania@gmail.com> References: <20191114124215.12985-1-unixmania@gmail.com> Subject: [Buildroot] [PATCH/next v2 5/5] configs/beaglebone_qt5: don't use custom post-image script X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlos Santos MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos Use support/scripts/genimage.sh, instead, which prevents duplicating TARGET_DIR under ${BUILD_DIR}/genimage.tmp/root. Use a post-build script to copy uEnv.txt to BINARIES_DIR, as made for beaglebone. Drop the post-image script. Signed-off-by: Carlos Santos --- board/beaglebone/post-image.sh | 29 ----------------------------- configs/beaglebone_qt5_defconfig | 4 +++- 2 files changed, 3 insertions(+), 30 deletions(-) delete mode 100755 board/beaglebone/post-image.sh diff --git a/board/beaglebone/post-image.sh b/board/beaglebone/post-image.sh deleted file mode 100755 index 68fe0896c6..0000000000 --- a/board/beaglebone/post-image.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -# post-image.sh for CircuitCo BeagleBone and TI am335x-evm -# 2014, Marcin Jabrzyk -# 2016, Lothar Felten - -BOARD_DIR="$(dirname $0)" - -# copy the uEnv.txt to the output/images directory -cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt - -# the 4.1 kernel does not provide a dtb for beaglebone green, so we -# use a different genimage config if am335x-bonegreen.dtb is not -# built: -if [ -e ${BINARIES_DIR}/am335x-bonegreen.dtb ] ; then - GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg" -else - GENIMAGE_CFG="${BOARD_DIR}/genimage_linux41.cfg" -fi - -GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" - -rm -rf "${GENIMAGE_TMP}" - -genimage \ - --rootpath "${TARGET_DIR}" \ - --tmppath "${GENIMAGE_TMP}" \ - --inputpath "${BINARIES_DIR}" \ - --outputpath "${BINARIES_DIR}" \ - --config "${GENIMAGE_CFG}" diff --git a/configs/beaglebone_qt5_defconfig b/configs/beaglebone_qt5_defconfig index 4a558c9ad4..99355e855c 100644 --- a/configs/beaglebone_qt5_defconfig +++ b/configs/beaglebone_qt5_defconfig @@ -5,7 +5,9 @@ BR2_TOOLCHAIN_BUILDROOT_GLIBC=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y -BR2_ROOTFS_POST_IMAGE_SCRIPT="board/beaglebone/post-image.sh" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/beaglebone/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beaglebone/genimage.cfg" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,beagleboard,linux,4.19.79-ti-r30)/linux-4.19.79-ti-r30.tar.gz"