makefile change to build standalone binary
Dennis Huang [Wed, 23 Apr 2014 18:19:44 +0000 (11:19 -0700)]
- To make the image, e.g.
  TARGET=t124 make -e

Change-Id: Id0feba4bd8b9a6e9f685d4278210872d5cc7baa1
Reviewed-on: http://git-master/r/400526
Reviewed-by: Dennis Huang <denhuang@nvidia.com>
Tested-by: Dennis Huang <denhuang@nvidia.com>

makefile

index 5969644..a79d3d4 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,4 +1,9 @@
-PREFIX ?= .
+#PREFIX ?= .
+PREFIX ?= ..
+
+TOOLCHAIN_PREFIX ?= ../tools/arm-eabi-4.7/bin/arm-eabi-
+TOOLCHAIN_PREFIX64 ?= ../tools/aarch64-linux-android-4.8/bin/aarch64-linux-android-
+PROJECT=tegra
 
 ifeq ($(MAKECMDGOALS),spotless)
 spotless:
@@ -31,7 +36,7 @@ endif
 
 DEBUG ?= 2
 
-BUILDDIR := $(PREFIX)/build-$(PROJECT)
+BUILDDIR := $(PREFIX)/build-$(TARGET)
 OUTBIN := $(BUILDDIR)/lk.bin
 OUTELF := $(BUILDDIR)/lk
 OUTSYS := $(BUILDDIR)/lk.sys
@@ -110,7 +115,7 @@ include target/rules.mk
 include kernel/rules.mk
 include dev/rules.mk
 include app/rules.mk
-include task/rules.mk
+#include task/rules.mk
 
 # recursively include any modules in the MODULE variable, leaving a trail of included
 # modules in the ALLMODULES list