mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-15 20:37:33 +00:00
We should have been using Droid Sans, not Helvetica, and some of the non-Roman locales need special handling to render clearly and correctly. We also get better results if we avoid scaling after rendering the text. Added scripts/newbitmaps/Makefile to regenerate it all, updated the READMEs. Since Hung-Te figured out how to use pango-view to render the UTF-8 reliably, we don't need to keep all the pre-rendered locale images anymore either. This provides the x86 bmpblock for Stumpy PVT. We may need some more tweaking for Lumpy and/or ARM. BUG=chrome-os-partner:6595 TEST=manual Put the new screens into the bios: gbb_utility -s --flags=0 -b bmpblock_x86.bin OLDBIOS NEWBIOS flashrom -w NEWBIOS Then reboot and look at the BIOS screens. The lettering is much clearer. Change-Id: Icb07bc6d131920730f41348c7de9151e42cc9518 Reviewed-on: https://gerrit.chromium.org/gerrit/11007 Tested-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
50 lines
1.6 KiB
Makefile
50 lines
1.6 KiB
Makefile
# 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 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:
|
|
cd fonts && ./make_ascii_bmps.py
|
|
bmpblk_font --outfile images/hwid_fonts.bin fonts/outdir/*
|
|
|
|
x86:
|
|
$(MAKE) -C strings/localized_text PT=15
|
|
cd strings/localized_text && tar cf temp.tar */*.bmp
|
|
mkdir -p images/out_$@/localized_images
|
|
cd images/out_$@/localized_images && \
|
|
tar xf ../../../strings/localized_text/temp.tar
|
|
$(MAKE) -C images $@ DEFAULT_LOCALES="$(DEFAULT_LOCALES)"
|
|
cp -f images/out_$@/bmpblock.bin bmpblock_$@.bin
|
|
|
|
arm:
|
|
@echo "FIXME: ARM bitmaps are not yet autogenerated"
|
|
|
|
clean:
|
|
rm -rf fonts/outdir strings/localized_text/*/*.bmp \
|
|
strings/localized_text/temp.tar \
|
|
images/localized_images \
|
|
images/out_x86 images/out_arm
|
|
|
|
.PHONY: outside_chroot fonts x86 arm
|