From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 19 Jun 2024 14:32:46 +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 1sJuUY-008gdB-0I for lore@lore.pengutronix.de; Wed, 19 Jun 2024 14:32:46 +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 1sJuUW-0007m2-P0; Wed, 19 Jun 2024 14:32:44 +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 1sJuUV-0007jh-7F; Wed, 19 Jun 2024 14:32:43 +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 1sJuUU-003Smx-LX; Wed, 19 Jun 2024 14:32:42 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sJuUU-005rFb-1w; Wed, 19 Jun 2024 14:32:42 +0200 From: Roland Hieber To: distrokit@pengutronix.de Date: Wed, 19 Jun 2024 14:32:36 +0200 Message-Id: <20240619123237.1396057-4-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240619123237.1396057-1-rhi@pengutronix.de> References: <20240619123237.1396057-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH v3 3/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: Michael Olbrich , 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. Reviewed-by: Michael Olbrich Signed-off-by: Roland Hieber --- configs/ptxconfig | 1 - rules/binary_inst.in | 27 ------------ rules/binary_inst.make | 97 ------------------------------------------ 3 files changed, 125 deletions(-) delete mode 100644 rules/binary_inst.in delete mode 100644 rules/binary_inst.make diff --git a/configs/ptxconfig b/configs/ptxconfig index f5ac373e61d2..c7cdb62e16a5 100644 --- a/configs/ptxconfig +++ b/configs/ptxconfig @@ -207,7 +207,6 @@ PTXCONF_STRACE=y # # Root Filesystem # -# PTXCONF_BINARY_EXAMPLE is not set # PTXCONF_FAKE_OVERLAYFS is not set PTXCONF_INITMETHOD=y # PTXCONF_INITMETHOD_BBINIT is not set diff --git a/rules/binary_inst.in b/rules/binary_inst.in deleted file mode 100644 index bbb989bed379..000000000000 --- a/rules/binary_inst.in +++ /dev/null @@ -1,27 +0,0 @@ -## SECTION=rootfs -# -# 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