summaryrefslogtreecommitdiffstats
path: root/self-extractors/csr
diff options
context:
space:
mode:
Diffstat (limited to 'self-extractors/csr')
-rw-r--r--self-extractors/csr/staging/device-maguro.mk9
-rw-r--r--self-extractors/csr/staging/proprietary/Android.mk39
2 files changed, 42 insertions, 6 deletions
diff --git a/self-extractors/csr/staging/device-maguro.mk b/self-extractors/csr/staging/device-maguro.mk
index de44d61..82da534 100644
--- a/self-extractors/csr/staging/device-maguro.mk
+++ b/self-extractors/csr/staging/device-maguro.mk
@@ -12,10 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-LOCAL_PATH := vendor/csr/maguro
-
# CSR blob(s) necessary for Maguro hardware
-PRODUCT_COPY_FILES := \
- $(LOCAL_PATH)/proprietary/sirfgps.conf:system/vendor/etc/sirfgps.conf \
- $(LOCAL_PATH)/proprietary/gps.omap4.so:system/vendor/lib/hw/gps.omap4.so \
-
+PRODUCT_PACKAGES := \
+ sirfgps \
+ gps.omap4
diff --git a/self-extractors/csr/staging/proprietary/Android.mk b/self-extractors/csr/staging/proprietary/Android.mk
new file mode 100644
index 0000000..8083553
--- /dev/null
+++ b/self-extractors/csr/staging/proprietary/Android.mk
@@ -0,0 +1,39 @@
+# Copyright (C) 2011 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH := $(call my-dir)
+
+ifeq ($(TARGET_DEVICE),maguro)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := gps.omap4
+LOCAL_MODULE_OWNER := csr
+LOCAL_SRC_FILES := gps.omap4.so
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := .so
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/lib/hw
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := sirfgps
+LOCAL_MODULE_OWNER := csr
+LOCAL_SRC_FILES := sirfgps.conf
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := .conf
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc
+include $(BUILD_PREBUILT)
+
+endif