2009/6/4 William Zheng <[email protected]>:

>        1). Where is the toolchain binary after make is
>            completed? Is it in prebuilt folder?

 prebuilt/linux-x86/toolchain/armv4t-android-eabi-4.2.1/

>        2). I want to build a koolu beta7 image. How should I
>            do? The userdata.img I buit has no customizations...

 For now:

    * please apply the attached patch in vendor/neo/freerunner
    * create a data/app directory there
    * unpack the file userdata.img (tar xf userdata.img)
    * copy the contents of the resulting "app" directory to
      vendor/neo/freerunner/data/app
    * remove vendor/neo/freerunner/data/app/ApiDemos.apk
    * Type make

 You should have a out/target/product/freerunner/userdata.img
 file with the same contents of the released one.  The apk files
 were downloaded from different websites, you can remove or add
 as much as you want.  In fact, you can just open the
 userdata.img file, and put whatever .apk files you wish to
 preinstall in there and remove the ones you don't want.  That
 file does not contain magic.

 Marcelo
From 4c804b0436cee629446252904fbf80723a025822 Mon Sep 17 00:00:00 2001
From: Marcelo E. Magallon <[email protected]>
Date: Fri, 5 Jun 2009 09:20:42 -0600
Subject: [PATCH] Add support for installing prebuilt apps

---
 Android.mk |   31 ++++++++++++++++++++++++++-----
 1 files changed, 26 insertions(+), 5 deletions(-)

diff --git a/Android.mk b/Android.mk
index e287dab..6e4272e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,5 +1,9 @@
 LOCAL_PATH := $(call my-dir)
 
+define local_find_files
+$(patsubst ./%,%,$(shell cd $(1) ; find . -type f -printf "%P\n"))
+endef
+
 # Keyboard layouts...
 
 copy_from := Neo1973_Buttons.kl \
@@ -63,13 +67,9 @@ ALL_PREBUILT += $(file)
 
 include $(CLEAR_VARS)
 
-define local_find_etc_files
-$(patsubst ./%,%,$(shell cd $(LOCAL_PATH)/etc ; find . -type f -printf "%P\n"))
-endef
-
 LOCAL_ETC_DIR  := $(LOCAL_PATH)/etc
 
-copy_from := $(call local_find_etc_files)
+copy_from := $(call local_find_files,$(LOCAL_ETC_DIR))
 copy_to   := $(addprefix $(TARGET_OUT_ETC)/,$(copy_from))
 copy_from := $(addprefix $(LOCAL_ETC_DIR),$(copy_from))
 
@@ -79,6 +79,27 @@ $(copy_to) : $(TARGET_OUT_ETC)/% : $(LOCAL_ETC_DIR)/% | $(ACP)
 ALL_PREBUILT += $(copy_to)
 
 ##
+## Extra data files
+##
+
+include $(CLEAR_VARS)
+
+LOCAL_DATA_DIR  := $(LOCAL_PATH)/data
+
+ifneq ($(wildcard $(LOCAL_DATA_DIR)),)
+
+copy_from := $(call local_find_files,$(LOCAL_DATA_DIR))
+copy_to   := $(addprefix $(TARGET_OUT_DATA)/,$(copy_from))
+copy_from := $(addprefix $(LOCAL_DATA_DIR),$(copy_from))
+
+$(copy_to) : $(TARGET_OUT_DATA)/% : $(LOCAL_DATA_DIR)/% | $(ACP)
+	$(transform-prebuilt-to-target)
+
+ALL_PREBUILT += $(copy_to)
+
+endif
+
+##
 ## Copy required binaries
 ##
 #binary := $(LOCAL_PATH)/binary
-- 
1.6.3.1

_______________________________________________
android-freerunner mailing list
[email protected]
http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org

Reply via email to