lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAFLxGvxuP64FzhKcL5bL2vv=sfQ0ZB2U_xXd4MkAF006RJfZrA@mail.gmail.com>
Date:	Thu, 8 Dec 2011 23:06:22 +0100
From:	richard -rw- weinberger <richard.weinberger@...il.com>
To:	"H. Peter Anvin" <hpa@...ux.intel.com>
Cc:	Jeff Dike <jdike@...toit.com>, Richard Weinberger <richard@....at>,
	Ingo Molnar <mingo@...e.hu>,
	Thomas Gleixner <tglx@...utronix.de>,
	user-mode-linux-devel@...ts.sourceforge.net,
	linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] um: Run host archheaders, allow use of host generated headers

On Tue, Dec 6, 2011 at 2:05 AM, H. Peter Anvin <hpa@...ux.intel.com> wrote:
> From: "H. Peter Anvin" <hpa@...ux.intel.com>
>
> Run the "archheaders" target for the host architecture, for
> architectures (like x86, now) that want to generate some of the
> necessary header files.
>
> Add $(HOST_DIR)/include/generated to the include path so we then pick
> them up.
>
> Signed-off-by: H. Peter Anvin <hpa@...ux.intel.com>
> ---
>  arch/um/Makefile |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/arch/um/Makefile b/arch/um/Makefile
> index 7730af6..00210e9 100644
> --- a/arch/um/Makefile
> +++ b/arch/um/Makefile
> @@ -64,7 +64,8 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\
>  #This will adjust *FLAGS accordingly to the platform.
>  include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
>
> -KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include
> +KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \
> +                  -I$(HOST_DIR)/include/generated
>
>  # -Derrno=kernel_errno - This turns all kernel references to errno into
>  # kernel_errno to separate them from the libc errno.  This allows -fno-common
> @@ -96,6 +97,10 @@ endef
>
>  KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig
>
> +archheaders:
> +       $(Q)$(MAKE) -C '$(KBUILD_SRC)' KBUILD_SRC= \
> +               ARCH=$(SUBARCH) O='$(objtree)' archheaders
> +

This does not work, KBUILD_SRC is empty.
I'm not a kbuild expert, but I think the usage of KBUILD_SRC is in general
not allowed.

-- 
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ