From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 17 Jun 2024 11:48:24 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sJ8yO-007W9H-2N for lore@lore.pengutronix.de; Mon, 17 Jun 2024 11:48:24 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sJ8yN-0005gX-VS; Mon, 17 Jun 2024 11:48:23 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sJ8yK-0005eI-DP; Mon, 17 Jun 2024 11:48:20 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sJ8yK-002whT-0j; Mon, 17 Jun 2024 11:48:20 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sJ8yJ-004HEg-36; Mon, 17 Jun 2024 11:48:19 +0200 From: Roland Hieber To: distrokit@pengutronix.de Date: Mon, 17 Jun 2024 11:48:18 +0200 Message-Id: <20240617094818.1019347-4-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240617094818.1019347-1-rhi@pengutronix.de> References: <20240617094818.1019347-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH v2 4/4] binary_inst: remove outdated example X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Roland Hieber Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false The current state of the example is outdated, e.g. the empty stages can just be left out. The recipe can always be recreated by running "ptxdist newpackage file" and following the steps of the wizard, as described in the PTXdist manual. Signed-off-by: Roland Hieber --- New patch in v2. --- rules/binary_inst.in | 27 ------------ rules/binary_inst.make | 97 ------------------------------------------ 2 files changed, 124 deletions(-) delete mode 100644 rules/binary_inst.in delete mode 100644 rules/binary_inst.make diff --git a/rules/binary_inst.in b/rules/binary_inst.in deleted file mode 100644 index 92c72baccbbe..000000000000 --- a/rules/binary_inst.in +++ /dev/null @@ -1,27 +0,0 @@ -## SECTION=distrokit -# -# This file is just an example how to install binaries to the root filesystem -# via ptxdist -# -menuconfig BINARY_EXAMPLE - bool "binary example " - help - This is an example only how to install binary files and archives. - Refer our "How to become a PTXdist Guru" application note on - how to use it. - -if BINARY_EXAMPLE - -config BINARY_EXAMPLE_FILE - bool "install the binary file" - help - This example will install the file 'local_src/binary_example/ptx_logo.png' - from this BSP into target's root filesystem in '/example' - -config BINARY_EXAMPLE_ARCHIVE - bool "install the binary archive" - help - This example will install all files from the 'local_src/archive_example/pictures.tgz' - archive from this BSP into target's root filesystem in '/example' - -endif diff --git a/rules/binary_inst.make b/rules/binary_inst.make deleted file mode 100644 index aa809936e2b2..000000000000 --- a/rules/binary_inst.make +++ /dev/null @@ -1,97 +0,0 @@ -# -# This is an example rule file to install some kind of binary data only. -# Only the targetinstall stage will do something. All other stages are skipped. -# Nothing has to be built at compile time, the files are expected ready for use -# as part of the BSP. -# - -# -# We provide this package -# -PACKAGES-$(PTXCONF_BINARY_EXAMPLE) += binary_example - -# -# Paths and names -# -BINARY_EXAMPLE_VERSION := 1 - -# ---------------------------------------------------------------------------- -# omit the 'get' stage (due to the fact, the files are already present) -# ---------------------------------------------------------------------------- - -$(STATEDIR)/binary_example.get: - @$(call targetinfo) - @$(call touch) - -# ---------------------------------------------------------------------------- -# omit the 'extract' stage (due to the fact, all files are already present) -# ---------------------------------------------------------------------------- - -$(STATEDIR)/binary_example.extract: - @$(call targetinfo) - @$(call touch) - -# ---------------------------------------------------------------------------- -# omit the 'prepare' stage (due to the fact, nothing is to be built) -# ---------------------------------------------------------------------------- - -$(STATEDIR)/binary_example.prepare: - @$(call targetinfo) - @$(call touch) - -# ---------------------------------------------------------------------------- -# omit the 'compile' stage (due to the fact, nothing is to be built) -# ---------------------------------------------------------------------------- - -$(STATEDIR)/binary_example.compile: - @$(call targetinfo) - @$(call touch) - -# ---------------------------------------------------------------------------- -# omit the 'install' stage (due to the fact, nothing is to be installed into the sysroot) -# ---------------------------------------------------------------------------- - -$(STATEDIR)/binary_example.install: - @$(call targetinfo) - @$(call touch) - -# ---------------------------------------------------------------------------- -# Target-Install -# ---------------------------------------------------------------------------- - -$(STATEDIR)/binary_example.targetinstall: - @$(call targetinfo) - - @$(call install_init, binary_example) - @$(call install_fixup, binary_example,PACKAGE,binary_example) - @$(call install_fixup, binary_example,PRIORITY,optional) - @$(call install_fixup, binary_example,VERSION,$(BINARY_EXAMPLE_VERSION)) - @$(call install_fixup, binary_example,SECTION,base) - @$(call install_fixup, binary_example,AUTHOR,"Juergen Beisert ") - @$(call install_fixup, binary_example,DEPENDS,) - @$(call install_fixup, binary_example,DESCRIPTION,"A few binary example files") - -# -# Install the single binary file on demand -# -ifdef PTXCONF_BINARY_EXAMPLE_FILE - @$(call install_copy, binary_example, 0, 0, 0755, /example) - @$(call install_copy, binary_example, 0, 0, 0644, \ - $(PTXDIST_WORKSPACE)/local_src/binary_example/ptx_logo.png, \ - /example/ptx_logo.png) -endif - -# -# Install the whole archive on demand -# -ifdef PTXCONF_BINARY_EXAMPLE_ARCHIVE - @$(call install_archive, binary_example, -, -, \ - $(PTXDIST_WORKSPACE)/local_src/archive_example/pictures.tgz, \ - /) -# note: the third parameter is the 'user id', the forth parameter the 'group id'. -# If given as '-', the ID from the archive is used. If given as number, this -# number is used, instead of the ID in the archive. -endif - - @$(call install_finish, binary_example) - @$(call touch) -- 2.39.2