diff options
author | Bernhard Walle <bernhard@bwalle.de> | 2012-01-24 22:19:24 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-02-02 23:41:03 +0100 |
commit | e929e076509ec6f449f5aa6cfcec42ef00b01682 (patch) | |
tree | 559e96af89f2061a45e9f41332d744c9d9bd9caf /rules/host-elf-h-compat.make | |
parent | 0c88d7c1d7a821a2f6ad78489add579cc265e003 (diff) | |
download | ptxdist-e929e076509ec6f449f5aa6cfcec42ef00b01682.tar.gz ptxdist-e929e076509ec6f449f5aa6cfcec42ef00b01682.tar.xz |
Add host-elf-h-compat package
This package should provide <elf.h> on host operating systems that have
no /usr/include/elf.h. The header is copied from glibc, modified a bit
to remove GNU dependencies and is sufficient to compile the Linux kernel
and module-init-tools.
The package itself only checks if elf.h is present. If yes, it does
nothing on "make install". If not, it installs its own copy of elf.h in
"make install" to the include directory set in autoconf.
We add this package as base package so that it gets built before the
packages which need it. Also, the package only gets required when
ptxdist is executed not on Linux (per uname -s output). This makes
maintaining the dependencies easier than requiring it in any packages
that need elf.h.
Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-elf-h-compat.make')
-rw-r--r-- | rules/host-elf-h-compat.make | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/rules/host-elf-h-compat.make b/rules/host-elf-h-compat.make new file mode 100644 index 000000000..9bd9a1daa --- /dev/null +++ b/rules/host-elf-h-compat.make @@ -0,0 +1,36 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Bernhard Walle <bernhard@bwalle.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 +# +LAZY_PACKAGES-$(PTXCONF_HOST_ELF_H_COMPAT) += host-elf-h-compat + +# +# Paths and names +# +HOST_ELF_H_COMPAT_VERSION := 0.2 +HOST_ELF_H_COMPAT_MD5 := a2a21551133c9278014f71cdb983564a +HOST_ELF_H_COMPAT := elf-h-compat-$(HOST_ELF_H_COMPAT_VERSION) +HOST_ELF_H_COMPAT_SUFFIX := tar.bz2 +HOST_ELF_H_COMPAT_URL := http://bwalle.de/programme/$(HOST_ELF_H_COMPAT).$(HOST_ELF_H_COMPAT_SUFFIX) +HOST_ELF_H_COMPAT_SOURCE := $(SRCDIR)/$(HOST_ELF_H_COMPAT).$(HOST_ELF_H_COMPAT_SUFFIX) +HOST_ELF_H_COMPAT_DIR := $(HOST_BUILDDIR)/$(HOST_ELF_H_COMPAT) + +# +# autoconf +# +HOST_ELF_H_COMPAT_CONF_TOOL := autoconf + +ifneq ($(shell uname -s),Linux) +$(STATEDIR)/base.prepare: $(STATEDIR)/host-elf-h-compat.install.post +endif + +# vim: syntax=make |