From: "Chin You Wen (WMSC-HW)" <youwen@willowglen.asia>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Iteratively Make & Make Install Subpackages
Date: Thu, 14 Mar 2019 17:34:37 +0800 [thread overview]
Message-ID: <CAJ1upxeUE-H+DADtp0D9e-+BvwkrLaBMs55H2sEpsUWhd4_zNg@mail.gmail.com> (raw)
In-Reply-To: <20190313080922.omidtsrj6bg3sz6e@pengutronix.de>
[-- Attachment #1.1: Type: text/plain, Size: 291 bytes --]
Hi Roland/Michael,
I was able to compile it by separating the libraries (libselinux, libsepol,
libsemanag) into separate rule files and targetinstalled those dependencies
first.
However when using the repo url in a single rule file (as attached), I run
into the problem I described above.
[-- Attachment #1.2: Type: text/html, Size: 363 bytes --]
[-- Attachment #2: selinux.make --]
[-- Type: application/octet-stream, Size: 3818 bytes --]
# -*-makefile-*-
#
# Copyright (C) 2019 by WMSC
#
# 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_SELINUX) += selinux
#
# Paths and names
#
SELINUX_VERSION := 20180524
#SELINUX_MD5 := 9B392BB6457BFC9EE55B1AEA6BA72348
SELINUX_MD5 := c23711e19dd365c8ce16b2bb74379d7f
SELINUX := selinux-$(SELINUX_VERSION)
SELINUX_SUFFIX := tar.gz
SELINUX_URL := https://github.com/SELinuxProject/selinux/archive/$(SELINUX_VERSION).$(SELINUX_SUFFIX)
SELINUX_SOURCE := $(SRCDIR)/$(SELINUX).$(SELINUX_SUFFIX)
SELINUX_DIR := $(BUILDDIR)/$(SELINUX)
SELINUX_LICENSE := unknown
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
#$(SELINUX_SOURCE):
# @$(call targetinfo)
# @$(call get, SELINUX)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#SELINUX_CONF_ENV := $(CROSS_ENV)
#
# autoconf
#
SELINUX_CONF_TOOL := NO
SELINUX_MAKE_ENV := $(CROSS_ENV)
SELINUX_MAKE_OPT := \
"CFLAGS += -Wno-error"
#SELINUX_CONF_OPT := $(CROSS_AUTOCONF_USR)
#$(STATEDIR)/selinux.prepare:
# @$(call targetinfo)
# @$(call clean, $(SELINUX_DIR)/config.cache)
# cd $(SELINUX_DIR) && \
# $(SELINUX_PATH) $(SELINUX_ENV) \
# ./configure $(SELINUX_CONF_OPT)
# @$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
$(STATEDIR)/selinux.compile:
@$(call targetinfo)
@$(call world/compile, SELINUX)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/selinux.install:
@$(call targetinfo)
@$(call world/install, SELINUX)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/selinux.targetinstall:
@$(call targetinfo)
@$(call install_init, selinux)
@$(call install_fixup, selinux,PRIORITY,optional)
@$(call install_fixup, selinux,SECTION,base)
@$(call install_fixup, selinux,AUTHOR,"WMSC")
@$(call install_fixup, selinux,DESCRIPTION,missing)
#@$(call install_copy, selinux, 0, 0, 0755, $(SELINUX_DIR)/foobar, /dev/null)
@$(call install_lib, libselinux, 0, 0, 0644, libselinux)
@$(call install_lib, libsepol, 0, 0, 0644, libsepol)
@$(call install_lib, libsemanage, 0, 0, 0644, libsepol)
# @$(call install_copy, selinux, 0, 0, 0755, -, /usr/sbin/sestatus)
# @$(call install_copy, selinux, 0, 0, 0755, -, /usr/sbin/setenforce)
# @$(call install_copy, selinux, 0, 0, 0755, -, /usr/sbin/getenforce)
# @$(call install_copy, selinux, 0, 0, 0755, -, /usr/sbin/setsebool)
# @$(call install_copy, selinux, 0, 0, 0755, -, /usr/sbin/getsebool)
# @$(call install_copy, selinux, 0, 0, 0755, -, /usr/sbin/selinuxenabled)
# @$(call install_copy, selinux, 0, 0, 0755, -, /usr/sbin/matchpathcon)
# @$(call install_copy, selinux, 0, 0, 0755, -, /usr/sbin/loadpolicy)
# @$(call install_copy, selinux, 0, 0, 0755, -, /usr/sbin/sestatus)
@$(call install_copy, selinux, 0, 0, 0755, -, /usr/bin/checkmodule)
@$(call install_finish, selinux)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
#$(STATEDIR)/selinux.clean:
# @$(call targetinfo)
# @$(call clean_pkg, SELINUX)
# vim: syntax=make
[-- Attachment #3: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2019-03-14 9:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-12 10:56 Chin You Wen (WMSC-HW)
2019-03-12 11:45 ` Roland Hieber
2019-03-13 8:09 ` Michael Olbrich
2019-03-14 9:34 ` Chin You Wen (WMSC-HW) [this message]
2019-03-14 12:02 ` Michael Olbrich
2019-03-15 10:23 ` Chin You Wen (WMSC-HW)
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=CAJ1upxeUE-H+DADtp0D9e-+BvwkrLaBMs55H2sEpsUWhd4_zNg@mail.gmail.com \
--to=youwen@willowglen.asia \
--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