From 52fc95d1b7e29a61d315eb7378c3b47985f4fd74 Mon Sep 17 00:00:00 2001
From: William Roberts <w.roberts@sta.samsung.com>
Date: Tue, 26 Mar 2013 14:00:51 -0700
Subject: [PATCH] Fix makefile error with ANDROID_BUILD_TOP

Use TOP instead of ANDROID_BUILD_TOP

Fix spelling issues in keys.conf

Change-Id: Ib90b3041af5ef68f30f4ab78c768ad225987ef2d
---
 Android.mk | 2 +-
 keys.conf  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Android.mk b/Android.mk
index c3863db45..2a6751eec 100644
--- a/Android.mk
+++ b/Android.mk
@@ -182,7 +182,7 @@ $($(MAC_PERMISSION_FILE).tmp) : $(call build_policy, $(MAC_PERMISSION_FILE))
 
 $(LOCAL_BUILT_MODULE) : $($(MAC_PERMISSION_FILE).tmp) $(mac_perms_keys.tmp) $(HOST_OUT_EXECUTABLES)/insertkeys.py
 	@mkdir -p $(dir $@)
-	$(HOST_OUT_EXECUTABLES)/insertkeys.py -t $(TARGET_BUILD_VARIANT) -c $(ANDROID_BUILD_TOP) $(mac_perms_keys.tmp) -o $@ $<
+	$(HOST_OUT_EXECUTABLES)/insertkeys.py -t $(TARGET_BUILD_VARIANT) -c $(TOP) $(mac_perms_keys.tmp) -o $@ $<
 
 $(MAC_PERMISSION_FILE).tmp :=
 ##################################
diff --git a/keys.conf b/keys.conf
index 387b65a53..c00289790 100644
--- a/keys.conf
+++ b/keys.conf
@@ -1,11 +1,11 @@
 #
 # Maps an arbitrary tag [TAGNAME] with the string contents found in
-# TARGET_BUILD_VARAINT. Common convention is to start TAGNAME with an @ and
+# TARGET_BUILD_VARIANT. Common convention is to start TAGNAME with an @ and
 # name it after the base file name of the pem file.
 #
 # Each tag (section) then allows one to specify any string found in
 # TARGET_BUILD_VARIANT. Typcially this is user, eng, and userdebug. Another
-# option is to use ALL which will match ANY TARGET_BUILD_VARAINT string.
+# option is to use ALL which will match ANY TARGET_BUILD_VARIANT string.
 #
 
 [@PLATFORM]
-- 
GitLab