From patchwork Tue Jan 26 19:26:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 1431883 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=rockwellcollins.com header.i=@rockwellcollins.com header.a=rsa-sha256 header.s=hrcrc2020 header.b=vV/pgSqH; 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 4DQGtb5QmYz9sB4 for ; Wed, 27 Jan 2021 06:26:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C43F0204AF; Tue, 26 Jan 2021 19:26:12 +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 t8PCQFOF-k6U; Tue, 26 Jan 2021 19:26:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 2491420395; Tue, 26 Jan 2021 19:26:10 +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 46FB31BF291 for ; Tue, 26 Jan 2021 19:26:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 43AD78674E for ; Tue, 26 Jan 2021 19:26:08 +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 VCIBVPtmhGT4 for ; Tue, 26 Jan 2021 19:26:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from da1vs05.rockwellcollins.com (da1vs05.rockwellcollins.com [205.175.227.130]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5566086755 for ; Tue, 26 Jan 2021 19:26:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rockwellcollins.com; s=hrcrc2020; h=from:to:cc:subject:date:message-id; bh=j84VLyNPvkuKzaJXiBYK2bQDnEXMjV2rpRCAqL5CPWQ=; b=vV/pgSqHDwhR/67chH7GUTrQrq7V76L989H4ihAoPbaHjJpQtWDpMhMf EF+VYMda0/1R8jRhmCXwM1kfyCI6upsuIxJYP619I7ZlLxJ+81LyS3Y2J euQblsw6nVARSL2ByZGhSxdttYBQUWmtzJ+MK8EG4yBGPQOibxjCM02IJ 95XKkjfyfPbCNEbmQ0DMhi6hK7sMNw+VmHfmGBEg6e1L6YueIKCVHotjN aVLXhPf2l1V5hz/aco1LgrohgYSUg8gtf6jG4ipxBois9/KFUpGB5xEZp cPyHK0igzBbYA2w4Fd6Ij46M8GLJOqFnKjaJHe/2XaF1Oi8aZgX/arSbn g==; IronPort-SDR: ojRQg+VujIq+k+y4ZiArZttk/oEMK9bgq4g72GE6pua2UOs6qaARwRyLbs0vaOK9Gt9wploT1a 7yWzetQ/EZxVMkBjYXl9y/MiU2FUG2VEsbmBmhkzBQ+V1+C1wXLl869Kd20kuYFfPbnwJDt60d fA22iFLzqhCuovsYj2zp/eGMtBPXxLvvQZObs4kGWIfzFtsNdKOMLKmYWD7j7a+fVvl2SXt7e+ z+LXeOToc++IxZbJRouVsipt61O2CIgU3aZk2pIQUER8e8zc34be71CO3Zk11E8pD3QTmWFnij ZPM= Received: from ofwda1n02.rockwellcollins.com (HELO ciulimr01.rockwellcollins.com) ([205.175.227.14]) by da1vs05.rockwellcollins.com with ESMTP; 26 Jan 2021 13:26:07 -0600 X-Received: from biscuits.rockwellcollins.com (biscuits.rockwellcollins.lab [10.148.119.137]) by ciulimr01.rockwellcollins.com (Postfix) with ESMTP id 7479C600FB; Tue, 26 Jan 2021 13:26:06 -0600 (CST) From: Matt Weber To: buildroot@buildroot.org Date: Tue, 26 Jan 2021 13:26:05 -0600 Message-Id: <20210126192605.20002-1-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH] package/opkg-utils: add opkg-utils as target pkg 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: Matt Weber , Ryan Barnett MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Ryan Barnett Supports a use case of building container rootfs images where a matching target version of the tools is required for online repackaging of a installer archive. Signed-off-by: Ryan Barnett Signed-off-by: Matt Weber --- DEVELOPERS | 1 + package/Config.in | 1 + package/opkg-utils/Config.in | 6 ++++++ package/opkg-utils/opkg-utils.mk | 9 +++++++++ 4 files changed, 17 insertions(+) create mode 100644 package/opkg-utils/Config.in diff --git a/DEVELOPERS b/DEVELOPERS index 7af3081760..3638efe6d5 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1750,6 +1750,7 @@ F: package/mtools/ F: package/nginx-upload/ F: package/omniorb/ F: package/openresolv/ +F: package/opkg-utils/ F: package/paxtest/ F: package/picocom/ F: package/policycoreutils/ diff --git a/package/Config.in b/package/Config.in index 12bd0608e3..18873c46c9 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2334,6 +2334,7 @@ comment "See the manual: " comment "http://buildroot.org/manual.html#faq-no-binary-packages" comment "-------------------------------------------------------" source "package/opkg/Config.in" + source "package/opkg-utils/Config.in" source "package/rpm/Config.in" endmenu diff --git a/package/opkg-utils/Config.in b/package/opkg-utils/Config.in new file mode 100644 index 0000000000..03172ea4da --- /dev/null +++ b/package/opkg-utils/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_OPKG_UTILS + bool "opkg-utils" + help + Helper scripts for use with the opkg package manager. + + https://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/ diff --git a/package/opkg-utils/opkg-utils.mk b/package/opkg-utils/opkg-utils.mk index a94a4cd5cd..ed4e73e7f0 100644 --- a/package/opkg-utils/opkg-utils.mk +++ b/package/opkg-utils/opkg-utils.mk @@ -12,6 +12,14 @@ OPKG_UTILS_LICENSE_FILES = COPYING HOST_OPKG_UTILS_DEPENDENCIES += $(BR2_PYTHON3_HOST_DEPENDENCY) +define OPKG_UTILS_BUILD_CMDS + $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) +endef + +define OPKG_UTILS_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) PREFIX=$(TARGET_DIR) install +endef + define HOST_OPKG_UTILS_BUILD_CMDS $(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS) endef @@ -20,4 +28,5 @@ define HOST_OPKG_UTILS_INSTALL_CMDS $(MAKE) -C $(@D) PREFIX=$(HOST_DIR) install endef +$(eval $(generic-package)) $(eval $(host-generic-package))