summaryrefslogtreecommitdiff
path: root/scripts/newbitmaps/Makefile
blob: 945bd413af64e62b9c3662fc8441c6c92f251c38 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This will regenerate the BIOS bitmap images for both x86 and arm. You
# shouldn't need to do this, though.

# These are all the known locales, sorted more-or-less geograpically
ALL_LOCALES=en es_419 pt_BR en_GB fr es pt_PT ca it de \
  el nl da no sv fi et lv lt ru pl cs sk hu sl sr hr bg ro \
  uk tr iw ar fa hi th vi id fil zh_CN zh_TW ko ja

# Here are the launch locales for Stumpy/Lumpy (issue 6595), same ordering.
DEFAULT_LOCALES=en es_419 pt_BR en_GB fr es it de nl da no sv ko ja

default: outside_chroot fonts strings x86 arm clean

outside_chroot:
	@if [ -e /etc/debian_chroot ]; then \
		echo "ImageMagick is too complex to build inside the chroot."; \
		echo "You must be outside the chroot to do this"; \
		echo "(and you probably shouldn't be doing it anyway)."; \
		exit 1; \
	fi


fonts:
	# TODO(hungte) Move fonts generation to its own Makefile.
	cd fonts && ./make_ascii_bmps.py
	bmpblk_font --outfile images/hwid_fonts.bin fonts/outdir/*.bmp

strings:
	$(MAKE) -C strings/localized_text

x86:
	$(MAKE) -C images $@ DEFAULT_LOCALES="$(DEFAULT_LOCALES)"
	cp -f images/out_$@/bmpblock.bin bmpblock_$@.bin

arm:
	$(MAKE) -C images $@ DEFAULT_LOCALES="$(DEFAULT_LOCALES)"
	cp -f images/out_$@/bmpblock.bin bmpblock_$@.bin

clean:
	rm -rf fonts/outdir
	$(MAKE) -C strings/localized_text clean
	$(MAKE) -C images clean

.PHONY: outside_chroot fonts strings x86 arm