summaryrefslogtreecommitdiffstats
path: root/rules/post/ptxd_make_image_vfat.make
blob: 872daaef3f38e645fa271d7ecd31f7ada6cf69ca (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
# -*-makefile-*-
#
# Copyright (C) 2011 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.
#

#
# image/vfat
#
# - $1	the image file name
# - $2	the image file size in bytes. Guessed if undefined.
# - $3	file with $src:$dst mappings for the image content
#
image/vfat = \
	$(call ptx/env) \
	image_vfat_file="$(1)" \
	image_vfat_size="$(2)" \
	image_vfat_map="$(3)" \
	ptxd_make_image_vfat

$(IMAGEDIR)/%.vfat: $(IMAGEDIR)/%.vfat.map
	@echo -n "Creating `basename $@` ..."
	@$(call image/vfat,$@,$($*_VFAT_SIZE),$<)
	@echo "done."

# vim: syntax=make