diff options
author | Juergen Beisert <jbe@pengutronix.de> | 2011-01-28 15:38:19 +0100 |
---|---|---|
committer | Juergen Beisert <jbe@pengutronix.de> | 2011-01-28 15:42:04 +0100 |
commit | 0bebc480d15ace51ac1baa1889a7b35cf01355d9 (patch) | |
tree | ff99297b6465a67635b65e971ff36c6a6cf9cba8 /rules | |
parent | eb095740ed0a3e78d04ead5b9a4d2b24b59bb92c (diff) | |
download | DistroKit-0bebc480d15ace51ac1baa1889a7b35cf01355d9.tar.gz DistroKit-0bebc480d15ace51ac1baa1889a7b35cf01355d9.tar.xz |
Provide the last release as a new beginning
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/binary_inst.in | 27 | ||||
-rw-r--r-- | rules/binary_inst.make | 97 |
2 files changed, 124 insertions, 0 deletions
diff --git a/rules/binary_inst.in b/rules/binary_inst.in new file mode 100644 index 0000000..bbb989b --- /dev/null +++ b/rules/binary_inst.in @@ -0,0 +1,27 @@ +## 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 new file mode 100644 index 0000000..aa80993 --- /dev/null +++ b/rules/binary_inst.make @@ -0,0 +1,97 @@ +# +# 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 <jbe@pengutronix.de>") + @$(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) |