summaryrefslogtreecommitdiffstats
path: root/rules/image-kernel-lzop.make
blob: 54be042b00167e4110b238382fe4c7b4135770f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*-makefile-*-
#
# Copyright (C) 2018 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_KERNEL_LZOP) += image-kernel-lzop

#
# Paths and names
#
IMAGE_KERNEL_LZOP	:= image-kernel-lzop
IMAGE_KERNEL_LZOP_IMAGE	:= $(IMAGEDIR)/linuximage.lzo

# ----------------------------------------------------------------------------
# Image
# ----------------------------------------------------------------------------

$(IMAGE_KERNEL_LZOP_IMAGE): $(IMAGEDIR)/linuximage
	@$(call targetinfo)
	@echo "Creating '$(notdir $(@))' from '$(notdir $(<))'..."
	@lzop -f $(call remove_quotes,$(PTXCONF_IMAGE_KERNEL_LZOP_EXTRA_ARGS)) -c "$(<)" > "$(@)"
	@$(call finish)

# vim: syntax=make