From: "Chin You Wen (WMSC-HW)" <youwen@willowglen.asia>
To: ptxdist@pengutronix.de
Subject: [ptxdist] Append Make Options to Compile Stage of Rule File
Date: Mon, 18 Feb 2019 17:43:59 +0800 [thread overview]
Message-ID: <CAJ1upxcDae=Uir9G5sbiBszFZxoc2vBA-0oe_fhgKpowP61Pkg@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 710 bytes --]
Hello,
I am writing a rule to compile the libsepol package that comes with plain
Makefiles. I am trying to pass *-Wno-error* option through the
<PKG>_MAKE_OPT variable to override the *-Werror *option specified in the
package Makefile.
I have set
LIBSEPOL_CONF_TOOL := NO
and also
LIBSEPOL_MAKE_ENV := $(CROSS_ENV)
LIBSEPOL_MAKE_OPT := \
-Wno-error=shadow
The make still runs without the *-Wno-error *option during compilation.
In the Quickstart guide, it is noted that "*in the rule file only the two
variables FOO_MAKE_ENV and FOO_MAKE_OPT must be set, to forward the
required settings to the package’s buildsystem.*"
What am I missing? Thanks in advance.
[-- Attachment #1.2: Type: text/html, Size: 982 bytes --]
[-- Attachment #2: libsepol.make --]
[-- Type: application/octet-stream, Size: 3156 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_LIBSEPOL) += libsepol
#
# Paths and names
#
LIBSEPOL_VERSION := 2.8
LIBSEPOL_MD5 := a7a8f0e4e2818000a546b030c15b8401
LIBSEPOL := libsepol_$(LIBSEPOL_VERSION)
LIBSEPOL_SUFFIX := orig.tar.gz
LIBSEPOL_URL := http://cdn-fastly.deb.debian.org/debian/pool/main/libs/libsepol/$(LIBSEPOL).$(LIBSEPOL_SUFFIX)
LIBSEPOL_SOURCE := $(SRCDIR)/$(LIBSEPOL).$(LIBSEPOL_SUFFIX)
LIBSEPOL_DIR := $(BUILDDIR)/$(LIBSEPOL)
LIBSEPOL_LICENSE := LGPL2.1
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
#$(LIBSEPOL_SOURCE):
# @$(call targetinfo)
# @$(call get, LIBSEPOL)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
LIBSEPOL_CONF_TOOL := NO
#LIBSEPOL_CONF_OPT := $(CROSS_AUTOCONF_USR)
#$(STATEDIR)/libsepol.prepare:
# @$(call targetinfo)
# @$(call clean, $(LIBSEPOL_DIR)/config.cache)
# cd $(LIBSEPOL_DIR) && \
# $(LIBSEPOL_PATH) $(LIBSEPOL_ENV) \
# ./configure $(LIBSEPOL_CONF_OPT)
# @$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
LIBSEPOL_MAKE_ENV := $(CROSS_ENV)
LIBSEPOL_MAKE_OPT := \
-Wno-error=shadow
#$(STATEDIR)/libsepol.compile:
# @$(call targetinfo)
# @$(call world/compile, LIBSEPOL)
# @$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
#$(STATEDIR)/libsepol.install:
# @$(call targetinfo)
# @$(call world/install, LIBSEPOL)
# @$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/libsepol.targetinstall:
@$(call targetinfo)
@$(call install_init, libsepol)
@$(call install_fixup, libsepol,PRIORITY,optional)
@$(call install_fixup, libsepol,SECTION,base)
@$(call install_fixup, libsepol,AUTHOR,"WMSC")
@$(call install_fixup, libsepol,DESCRIPTION,missing)
@$(call install_lib, libsepol, 0, 0, 0644, libsepol)
@$(call install_finish, libsepol)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
#$(STATEDIR)/libsepol.clean:
# @$(call targetinfo)
# @$(call clean_pkg, LIBSEPOL)
# vim: syntax=make
[-- Attachment #3: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2019-02-18 9:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-18 9:43 Chin You Wen (WMSC-HW) [this message]
2019-02-18 9:56 ` Juergen Borleis
2019-02-18 10:29 ` Chin You Wen (WMSC-HW)
2019-02-18 10:50 ` Juergen Borleis
2019-02-19 3:14 ` 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='CAJ1upxcDae=Uir9G5sbiBszFZxoc2vBA-0oe_fhgKpowP61Pkg@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