diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2011-11-10 09:21:48 -0800 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2011-11-10 09:37:31 -0800 |
commit | 567c99781e10f7ab1b454f6218e8171483b1ddea (patch) | |
tree | 31a0daeaa366a4dc9121b350d2b257b4abe8e85c | |
parent | 3854e63953d75a732401e2e05eaa505f30051b03 (diff) | |
download | stingray-567c99781e10f7ab1b454f6218e8171483b1ddea.tar.gz |
Sanity-check that we know the stingray builds.
There's a makefile down the line that needs to know
whether it's used for stingray or wingray, but can
only know from TARGET_PRODUCT as other variables
haevn't been set yet. This enforces that all the
relevant TARGET_PRODUCT values for stingray are
properly updated.
Bug: 5568641
Change-Id: Iedbb37c221676f2dfaeaf15d71acb85db2c3b172
-rwxr-xr-x | BoardConfig.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index 73102ff..e6a75af 100755 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -20,6 +20,20 @@ # definition file). # +ifeq ($(filter trygon calgon full_stingray tyranid stingray,$(TARGET_PRODUCT)),) +$(warning The stingray device can only be used) +$(warning with the following TARGET_PRODUCT:) +$(warning trygon calgon full_stingray tyranid stingray) +$(warning and you are using $(TARGET_PRODUCT).) +$(warning If that's correct, you need to modify) +$(warning the following files:) +$(warning device/moto/stingray/BoardConfig.mk) +$(warning device/moto/wingray/device_base.mk) +$(warning and (if it comes from git)) +$(warning vendor/moto/stingray/stingray-vendor.mk) +$(error unknown TARGET_PRODUCT for stingray) +endif + include device/moto/wingray/BoardConfig.mk BOARD_KERNEL_CMDLINE := |