diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-09-09 12:01:50 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-12-04 09:20:14 +0100 |
commit | acc86b01b4d5bc533fe4a77f39ab7d8f9b939280 (patch) | |
tree | 40c273b122c6e273e610f484ad94efca78e4c756 /rules/image-toolchain-deb.make | |
parent | 86b0e02da27331697064ecaa150b1acae90b53fc (diff) | |
download | OSELAS.Toolchain-acc86b01b4d5bc533fe4a77f39ab7d8f9b939280.tar.gz OSELAS.Toolchain-acc86b01b4d5bc533fe4a77f39ab7d8f9b939280.tar.xz |
move stripping and image creation into ptxdist rules
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/image-toolchain-deb.make')
-rw-r--r-- | rules/image-toolchain-deb.make | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/rules/image-toolchain-deb.make b/rules/image-toolchain-deb.make new file mode 100644 index 0000000..aae6146 --- /dev/null +++ b/rules/image-toolchain-deb.make @@ -0,0 +1,42 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 by Michael Olbrich <m.olbrich@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 +# +IMAGE_PACKAGES-$(PTXCONF_IMAGE_TOOLCHAIN_DEB) += image-toolchain-deb + +# +# Paths and names +# +IMAGE_TOOLCHAIN_DEB_VERSION := $(shell ./scripts/setlocalversion ./.tarball-version) +IMAGE_TOOLCHAIN_DEB_ARCH := $(shell uname -m) +ifeq ($(IMAGE_TOOLCHAIN_DEB_ARCH),x86_64) +IMAGE_TOOLCHAIN_DEB_ARCH := amd64 +endif +ifeq ($(patsubst i%86,,$(IMAGE_TOOLCHAIN_DEB_ARCH)),) +IMAGE_TOOLCHAIN_DEB_ARCH := i386 +endif +ifeq ($(IMAGE_TOOLCHAIN_DEB_ARCH),ppc) +IMAGE_TOOLCHAIN_DEB_ARCH := powerpc +endif +IMAGE_TOOLCHAIN_DEB_IMAGE := $(PTXDIST_WORKSPACE)/dist/oselas.toolchain-$(IMAGE_TOOLCHAIN_DEB_VERSION)-$(subst _,-,$(PTXCONF_PLATFORM))_$(IMAGE_TOOLCHAIN_DEB_VERSION)_$(IMAGE_TOOLCHAIN_DEB_ARCH).deb + +# ---------------------------------------------------------------------------- +# Image +# ---------------------------------------------------------------------------- + +$(IMAGE_TOOLCHAIN_DEB_IMAGE): $(STATEDIR)/world.cleanup + @$(call targetinfo) + @mkdir -p $(dir $@) + @scripts/make_deb.sh -d "$(@)" -s "$(PTXCONF_SYSROOT_CROSS)" + @$(call finish) + +# vim: syntax=make |