diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-01-06 14:38:19 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-04-11 11:18:16 +0200 |
commit | b557637599b1ac3a8a5c08c04c06cc861a3f3071 (patch) | |
tree | bc155be4d9c34c920751414c3411017fbc8ed236 /rules | |
parent | 6ab772149fe98fb93fb91444f96248e0bbee2078 (diff) | |
download | ptxdist-b557637599b1ac3a8a5c08c04c06cc861a3f3071.tar.gz ptxdist-b557637599b1ac3a8a5c08c04c06cc861a3f3071.tar.xz |
initial /usr merge implementation
Any files in /bin, /sbin and /lib are transparently installed in /usr.
This makes it possible to migrate each package individually.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/initmethod.in | 1 | ||||
-rw-r--r-- | rules/usr-rootfs.in | 5 | ||||
-rw-r--r-- | rules/usr-rootfs.make | 44 |
3 files changed, 50 insertions, 0 deletions
diff --git a/rules/initmethod.in b/rules/initmethod.in index aa5160893..0b1c2df25 100644 --- a/rules/initmethod.in +++ b/rules/initmethod.in @@ -2,6 +2,7 @@ menuconfig INITMETHOD bool "init " + select USR_ROOTFS default y help Choose the system startup init method here diff --git a/rules/usr-rootfs.in b/rules/usr-rootfs.in new file mode 100644 index 000000000..8190c62d1 --- /dev/null +++ b/rules/usr-rootfs.in @@ -0,0 +1,5 @@ +## SECTION=rootfs + +config USR_ROOTFS + tristate + select BASE diff --git a/rules/usr-rootfs.make b/rules/usr-rootfs.make new file mode 100644 index 000000000..9fc963cff --- /dev/null +++ b/rules/usr-rootfs.make @@ -0,0 +1,44 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Michael Olbrich <m.olbrich@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_USR_ROOTFS) += usr-rootfs + +USR_ROOTFS_VERSION := 1.0 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/usr-rootfs.targetinstall: + @$(call targetinfo) + + @$(call install_init, usr-rootfs) + @$(call install_fixup,usr-rootfs,PRIORITY,optional) + @$(call install_fixup,usr-rootfs,SECTION,base) + @$(call install_fixup,usr-rootfs,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup,usr-rootfs,DESCRIPTION,missing) + + @$(call install_copy, usr-rootfs, 0, 0, 0755, /usr) + @$(call install_copy, usr-rootfs, 0, 0, 0755, /usr/bin) + @$(call install_copy, usr-rootfs, 0, 0, 0755, /usr/sbin) + @$(call install_copy, usr-rootfs, 0, 0, 0755, /usr/lib) + + @$(call install_link, usr-rootfs, usr/bin, /bin) + @$(call install_link, usr-rootfs, usr/sbin, /sbin) + @$(call install_link, usr-rootfs, usr/lib, /lib) + + @$(call install_finish,usr-rootfs) + + @$(call touch) + +# vim: syntax=make |