diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-12-30 16:56:22 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-12-30 16:56:22 +0100 |
commit | 2128f9a2aa122e6ce6ba97cc6864fe17c92682f4 (patch) | |
tree | 48baad5bcfcd6fff12154b3812440b9f9238a669 /mk | |
parent | 6cf91965f8bd49fedc76697f6677df5ccfe4d666 (diff) | |
download | embtoolkit-2128f9a2aa122e6ce6ba97cc6864fe17c92682f4.tar.gz embtoolkit-2128f9a2aa122e6ce6ba97cc6864fe17c92682f4.tar.bz2 embtoolkit-2128f9a2aa122e6ce6ba97cc6864fe17c92682f4.tar.xz |
Rootfs: New openrc: add initial makefile and kconfig entries
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/rootfs/openrc/openrc.mk | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/mk/rootfs/openrc/openrc.mk b/mk/rootfs/openrc/openrc.mk new file mode 100644 index 0000000..f1ad28f --- /dev/null +++ b/mk/rootfs/openrc/openrc.mk @@ -0,0 +1,69 @@ +################################################################################ +# Copyright(C) 2013 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file openrc.mk +# \brief openrc.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date December 2013 +################################################################################ + +OPENRC_NAME := openrc +OPENRC_VERSION := $(call embtk_get_pkgversion,openrc) +OPENRC_SITE := $(embtk_ftp/packages-mirror) +OPENRC_PACKAGE := openrc-$(OPENRC_VERSION).tar.bz2 +OPENRC_SRC_DIR := $(embtk_pkgb)/openrc-$(OPENRC_VERSION) +OPENRC_BUILD_DIR := $(embtk_pkgb)/openrc-$(OPENRC_VERSION) + +OPENRC_ETC := conf.d init.d.misc init.d local.d rc.conf runlevels sysctl.d +OPENRC_LIBEXECS := rc + +ifeq ($(embtk_os),linux) +OPENRC_MAKE_OPTS := OS=Linux +endif + +OPENRC_MAKE_ENV := LIBNAME=$(LIBDIR) MKSTATICLIBS=no MKPKGCONFIG=no +OPENRC_MAKE_ENV += AR=$(TARGETAR) RANLIB=$(TARGETRANLIB) +OPENRC_MAKE_ENV += CC=$(TARGETCC_CACHED) CFLAGS="$(TARGET_CFLAGS)" +OPENRC_MAKE_ENV += LIBEXECDIR=/usr/libexec/rc +OPENRC_MAKE_ENV += BRANDING="EmbToolkit v$(EMBTK_VERSION)" +OPENRC_MAKE_ENV += MKCONFD=no +OPENRC_MAKE_ENV += MKETC=no +OPENRC_MAKE_ENV += MKINITD=no +OPENRC_MAKE_ENV += MKLOCALD=no +OPENRC_MAKE_ENV += MKMAN=no +OPENRC_MAKE_ENV += MKSCRIPTS=no +OPENRC_MAKE_ENV += MKSYSCTLD=no +OPENRC_MAKE_ENV += MKRUNLEVELS=no + +define embtk_install_openrc + $(call embtk_makeinstall_pkg,openrc) +endef + +define embtk_cleanup_openrc + rm -rf $(embtk_sysroot)/$(LIBDIR)/libeinfo.so* + rm -rf $(embtk_sysroot)/$(LIBDIR)/librc.so* + rm -rf $(embtk_sysroot)/bin/rc-status + rm -rf $(embtk_sysroot)/sbin/rc + rm -rf $(embtk_sysroot)/sbin/rc-service + rm -rf $(embtk_sysroot)/sbin/rc-update + rm -rf $(embtk_sysroot)/sbin/runscript + rm -rf $(embtk_sysroot)/sbin/service + rm -rf $(embtk_sysroot)/sbin/start-stop-daemon + rm -rf $(embtk_sysroot)/sbin/openrc + rm -rf $(embtk_sysroot)/sbin/openrc-run +endef |