diff options
author | Alexander Aring <aar@pengutronix.de> | 2016-01-25 22:00:32 +0100 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2016-06-06 20:39:04 +0200 |
commit | ad1b49dc80baebc51a7a04c5b07b7b1ae983bf73 (patch) | |
tree | 756aab6a0bb3f74a4b875bc9e0477bc9445ac75e /configs/platform-rpi/rules/image-boot-vfat.make | |
parent | b506b0058fabee97c3507205464de9aad620214c (diff) | |
download | DistroKit-ad1b49dc80baebc51a7a04c5b07b7b1ae983bf73.tar.gz DistroKit-ad1b49dc80baebc51a7a04c5b07b7b1ae983bf73.tar.xz |
config: initial import rpi
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-rpi/rules/image-boot-vfat.make')
-rw-r--r-- | configs/platform-rpi/rules/image-boot-vfat.make | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/configs/platform-rpi/rules/image-boot-vfat.make b/configs/platform-rpi/rules/image-boot-vfat.make new file mode 100644 index 0000000..93a725b --- /dev/null +++ b/configs/platform-rpi/rules/image-boot-vfat.make @@ -0,0 +1,54 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 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_BOOT_VFAT) += image-boot-vfat + +# +# Paths and names +# +IMAGE_BOOT_VFAT := image-boot-vfat +IMAGE_BOOT_VFAT_DIR := $(BUILDDIR)/$(IMAGE_BOOT_VFAT) +IMAGE_BOOT_VFAT_IMAGE := $(IMAGEDIR)/boot.vfat +IMAGE_BOOT_VFAT_DATA := \ + $(wildcard $(PTXDIST_PLATFORMCONFIGDIR)/firmware/*.bin) \ + $(wildcard $(PTXDIST_PLATFORMCONFIGDIR)/firmware/*.elf) \ + $(wildcard $(PTXDIST_PLATFORMCONFIGDIR)/firmware/*.dat) \ + $(PTXDIST_TEMPDIR)/config.txt +IMAGE_BOOT_VFAT_CONFIG := boot-vfat.config + +# ---------------------------------------------------------------------------- +# Image +# ---------------------------------------------------------------------------- + +define squote_and_comma +$(subst $(ptx/def/space),$(comma) ,$(addsuffix $(ptx/def/squote),$(addprefix $(ptx/def/squote),$(1)))) +endef + + +IMAGE_BOOT_VFAT_ENV := \ + FILES="$(call squote_and_comma,$(IMAGE_BOOT_VFAT_DATA))" \ + HEADER=$(PTXDIST_PLATFORMCONFIGDIR)/first32k.bin \ + BAREBOX=barebox-image \ + BAREBOX_ENV=barebox-default-environment \ + KERNEL=linuximage \ + START=$(PTXDIST_PLATFORMCONFIGDIR)/firmware/$(PTXCONF_IMAGE_BOOT_VFAT_START)_start.elf + +$(IMAGE_BOOT_VFAT_IMAGE): + @$(call targetinfo) + @GPU_MEM=$(PTXCONF_IMAGE_BOOT_VFAT_GPU_MEM) \ + ptxd_replace_magic "$(PTXDIST_PLATFORMCONFIGDIR)/config.txt" > \ + "$(PTXDIST_TEMPDIR)/config.txt" + @$(call image/genimage, IMAGE_BOOT_VFAT) + @$(call finish) + +# vim: syntax=make |