mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Grzeschik <m.grzeschik@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2 3/3] host-lxc: add new hostside package
Date: Wed, 22 Aug 2018 10:27:51 +0200	[thread overview]
Message-ID: <20180822082751.7486-4-m.grzeschik@pengutronix.de> (raw)
In-Reply-To: <20180822082751.7486-1-m.grzeschik@pengutronix.de>

This package adds support to build the host side lxc package.
It allows to use the lxc-utils on the build host.

To test if all necessary kernel options are enabled for the target
try the following command after building the host-package.

$ CONFIG=$(BSP)/config/platform-$(target)/kernelconfig \
        $(BSP)/platform-$(target)/sysroot-host/bin/lxc-checkconfig

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
v1 -> v2: - added dash to host-side in prompt
          - disabled distro check
          - removed bash completion support

 rules/host-lxc.in   | 10 +++++++++
 rules/host-lxc.make | 51 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 rules/host-lxc.in
 create mode 100644 rules/host-lxc.make

diff --git a/rules/host-lxc.in b/rules/host-lxc.in
new file mode 100644
index 000000000..59ce83688
--- /dev/null
+++ b/rules/host-lxc.in
@@ -0,0 +1,10 @@
+## SECTION=hosttools
+
+config HOST_LXC
+	tristate
+	prompt "host-side lxc"
+	help
+	  LXC is a userspace interface for the Linux kernel containment
+	  features. Through a powerful API and simple tools, it lets
+	  Linux users easily create and manage system or application
+	  containers.
diff --git a/rules/host-lxc.make b/rules/host-lxc.make
new file mode 100644
index 000000000..c8b105a49
--- /dev/null
+++ b/rules/host-lxc.make
@@ -0,0 +1,51 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Michael Grzeschik <mgr@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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_LXC) += host-lxc
+
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_LXC_CONF_TOOL	:= autoconf
+HOST_LXC_CONF_OPT	:= \
+	$(HOST_AUTOCONF) \
+	--disable-silent-rules \
+	--disable-dependency-tracking \
+	--enable-shared \
+	--disable-static \
+	--disable-fast-install \
+	--disable-libtool-lock \
+	--disable-werror \
+	--disable-rpath \
+	--disable-doc \
+	--disable-api-docs \
+	--disable-apparmor \
+	--disable-gnutls \
+	--disable-selinux \
+	--disable-seccomp \
+	--disable-capabilities \
+	--disable-examples \
+	--disable-mutex-debugging \
+	--disable-bash \
+	--enable-tools \
+	--enable-commands \
+	--disable-tests \
+	--disable-configpath-log \
+	--disable-pam \
+	--with-distro=unknown \
+	--with-pamdir=none
+
+# vim: syntax=make
-- 
2.18.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2018-08-22  8:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-22  8:27 [ptxdist] [PATCH v2 0/3] lxc: add support Michael Grzeschik
2018-08-22  8:27 ` [ptxdist] [PATCH v2 1/3] busybox: don't install /sbin/init link if busybox is not the initmethod Michael Grzeschik
2018-08-22  9:20   ` Uwe Kleine-König
2018-08-22  8:27 ` [ptxdist] [PATCH v2 2/3] lxc: add new package Michael Grzeschik
2018-08-27  9:52   ` Michael Grzeschik
2018-08-22  8:27 ` Michael Grzeschik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180822082751.7486-4-m.grzeschik@pengutronix.de \
    --to=m.grzeschik@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox