From patchwork Sun Oct 13 00:22:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1175778 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.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="PCaPs4WA"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46rMpt2VhZz9s7T for ; Sun, 13 Oct 2019 11:23:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0789B87F84; Sun, 13 Oct 2019 00:23:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w22IEcEM3H+m; Sun, 13 Oct 2019 00:22:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 17FBA87FA4; Sun, 13 Oct 2019 00:22:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 72A3C1BF95E for ; Sun, 13 Oct 2019 00:22:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6B76387FA4 for ; Sun, 13 Oct 2019 00:22:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dZlSi5Mkp+FW for ; Sun, 13 Oct 2019 00:22:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f193.google.com (mail-qt1-f193.google.com [209.85.160.193]) by hemlock.osuosl.org (Postfix) with ESMTPS id 801FD87F84 for ; Sun, 13 Oct 2019 00:22:55 +0000 (UTC) Received: by mail-qt1-f193.google.com with SMTP id n17so294529qtr.4 for ; Sat, 12 Oct 2019 17:22:55 -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=kfshLHCppcGDFvm2SnoEJ6xfW0KpJgRazc9NocnhKTM=; b=PCaPs4WAbNmo48X/UvZ4rlvuMXYLusxrr+N+JlQnKMY+213ERy/X2Y4RAeMisLyXml n5wpwESJ+epgj2ftLQKg2ecVmOcpeep8UDhsF70RdF8VwVRoikDalKcGcgfXy0ZpGG/6 q5BD+qo+/pAInqxIHg9SHd3cfcba+sgiffXXe2hw+JUP2YymortH5codp4tZpnqzr6/p SoDL2Cpl6Yk7O/Je0DHQt/T5y7Xfm8BflOUEEHRT3Fuhvgam5OBBYj6AilQFoDKkm/Zd j2/UVw712dj+rfKTOsHEaXJ66ucZP3vuR/a5/ZnXuaVKR2+pGLVtB5Sn1k9X9GNi7Xld h1MA== 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=kfshLHCppcGDFvm2SnoEJ6xfW0KpJgRazc9NocnhKTM=; b=LmYpLFQp+mcFDCFp1s8TYRboVgT0hevYnRaDv6Xy2qv5MJbqGTGnEQpwW49h04OD0D bVxk+UND640GCEL9RkpHOkjebSvjM5u7e/b3QuwjZuSo+NGPi3teSqS/OSUH8BYGy0hI KPRZ3P0C59/1hirbn4xzYKvqyT//gFGV0PtgjA2sadVGGISTvix4RXNvx127lxykrp3m STBHotBH33j+WBJ+r4j40lUDDE5Hf53l7lX7+zRFMl4nuCluH9TDeyEtvlPhi8Xh38Zu bFi0JdrlpmbQqgNkDWV8E6LQBSnTgBL22qwyaLwEVeDNaZNQzFcEFaUkeI7/jKYUGKjn l96w== X-Gm-Message-State: APjAAAUJ053VfVhEFOJ4kP7XfCaBlXNBvVp0wsMKsvINfjzBvZaajVjD 93Imq33QXcxXGCmXKbl8VhFwHOXWubc= X-Google-Smtp-Source: APXvYqyqb17sMfMWe8Ned5Y3Hzlt1NvUhesA/3+IZcG08SPuCFJGtmJSC8eM+X1iLEbA+nqaMkGG5A== X-Received: by 2002:a0c:94af:: with SMTP id j44mr23728060qvj.230.1570926174321; Sat, 12 Oct 2019 17:22:54 -0700 (PDT) Received: from casantos.remote.csb (177.204.230.17.dynamic.adsl.gvt.net.br. [177.204.230.17]) by smtp.gmail.com with ESMTPSA id k54sm9373533qtf.28.2019.10.12.17.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2019 17:22:53 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Sat, 12 Oct 2019 21:22:26 -0300 Message-Id: <20191013002232.1045-4-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20191013002232.1045-1-unixmania@gmail.com> References: <20191013002232.1045-1-unixmania@gmail.com> Subject: [Buildroot] [PATCH 3/9] configs/beaglebone: 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 , Peter Korsgaard , Peter Seiderer , Fabio Estevam , Martin Bark 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 beagleboneai. Keep the post-image script because it is still used by beaglebone_qt5. Signed-off-by: Carlos Santos --- This should be made for beaglebone_qt5 too, but it's not possible to test because it' broken since commit a7914499b80r: https://gitlab.com/buildroot.org/buildroot/-/jobs/289126249 --- board/beaglebone/post-build.sh | 4 ++++ configs/beaglebone_defconfig | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 board/beaglebone/post-build.sh diff --git a/board/beaglebone/post-build.sh b/board/beaglebone/post-build.sh new file mode 100755 index 0000000000..ffdd19138c --- /dev/null +++ b/board/beaglebone/post-build.sh @@ -0,0 +1,4 @@ +#!/bin/sh +BOARD_DIR="$(dirname $0)" + +cp $BOARD_DIR/uEnv.txt $BINARIES_DIR/uEnv.txt diff --git a/configs/beaglebone_defconfig b/configs/beaglebone_defconfig index d88b4253ef..ee97f80322 100644 --- a/configs/beaglebone_defconfig +++ b/configs/beaglebone_defconfig @@ -2,7 +2,9 @@ BR2_arm=y BR2_cortex_a8=y BR2_GLOBAL_PATCH_DIR="board/beaglebone/patches" BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=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_GIT=y BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.ti.com/processor-sdk/processor-sdk-linux.git"