summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2011-04-22 13:45:12 -0700
committerJean-Baptiste Queru <jbq@google.com>2011-04-22 13:45:12 -0700
commit1b8bb820d14fc167ed79ee839d0ca81e5ca37e1e (patch)
tree3d5797c129ce63f0f78a841db043253538e19f41
parent76d67da541efcf6a097a35b68192b7ddc9997535 (diff)
downloaddevice_samsung_crespo-1b8bb820d14fc167ed79ee839d0ca81e5ca37e1e.zip
device_samsung_crespo-1b8bb820d14fc167ed79ee839d0ca81e5ca37e1e.tar.gz
device_samsung_crespo-1b8bb820d14fc167ed79ee839d0ca81e5ca37e1e.tar.bz2
Bring this back closer to the gingerbread state
Change-Id: I61fdefaa06d7508a17beacea7e8d39628e156e13
-rw-r--r--full_crespo-vendor.mk68
-rw-r--r--full_crespo.mk14
-rwxr-xr-xsetup-makefiles.sh32
3 files changed, 12 insertions, 102 deletions
diff --git a/full_crespo-vendor.mk b/full_crespo-vendor.mk
deleted file mode 100644
index 2d767e6..0000000
--- a/full_crespo-vendor.mk
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright (C) 2010 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.
-
-# This file is an "interesting" abuse of the build system.
-#
-# So, here's the reason why this file exists:
-#
-# The live wallpaper stuff is all open-source, but it fundamentally
-# relies on non-open-source features (specifically, OpenGL drivers,
-# which don't seem to ever get open-sourced). Because of that, we can't
-# use them in pure open-source builds (they crash).
-#
-# The clean solution would be to maintain two entirely separate
-# device and product configurations, one purely open-source and the
-# other that'd use proprietary drivers.
-#
-# That's very nice in theory, but the reality is that in such a setup
-# the two variants would inevitably drift. Been there, done that.
-#
-# So, we're in a situation where we want to include those open-source
-# packages only in non-open-source builds. To be as transparent as
-# possible, we want to do that in an open-source way.
-#
-# One approach (which has been used in the past) is to pretend that
-# those files are drivers, so that when we include the driver-level
-# modules that are necessary we also include those apps. That works
-# fine if you only ever build a single configuration in open-source
-# environments with proprietary drivers added. However it breaks down
-# once you try to do multiple builds: those are very high-level features
-# that shouldn't clutter the build of someone trying to do a minimally
-# booting system.
-#
-# The approach I'm using here really considers these as product-level,
-# not device-level. The plain product definition doesn't include this
-# file directly. Instead, it conditionally includes a file on the
-# proprietary side, which trampolines back to this file. In pure
-# open-source builds, this file is never reached. In private builds
-# with the true vendor tree, the trampoline exists and bounces back
-# here. In open-source builds with proprietary drivers added, a
-# trampoline is created along with the proprietary drivers.
-#
-# That's a long explanation, but, really, it just works. Trust me.
-
-# Live wallpaper packages
-PRODUCT_PACKAGES := \
- LiveWallpapers \
- LiveWallpapersPicker \
- MagicSmokeWallpapers \
- VisualizationWallpapers \
- librs_jni
-
-# Publish that we support the live wallpaper feature.
-PRODUCT_COPY_FILES := \
- packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
-
-# Pick up overlay for features that depend on non-open-source files
-DEVICE_PACKAGE_OVERLAYS := vendor/samsung/crespo/overlay
diff --git a/full_crespo.mk b/full_crespo.mk
index aa57db7..ae9c91b 100644
--- a/full_crespo.mk
+++ b/full_crespo.mk
@@ -19,23 +19,9 @@
# product configuration (apps).
#
-# NFC is a product-level aspect that is too closely tied
-# to this device to justify putting in a more generic config,
-# but which is also not quite a low-level driver to put in
-# device.mk
-PRODUCT_PACKAGES := \
- libnfc \
- libnfc_jni \
- Nfc \
- Tag
-
# Get the long list of APNs
PRODUCT_COPY_FILES := device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
-# Get the parts that are either non-open-source or depend
-# on non-open-source drivers
-$(call inherit-product-if-exists, vendor/samsung/crespo/full_crespo-trampoline.mk)
-
# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
# This is where we'd set a backup provider if we had one
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
index 5a6144f..230bc67 100755
--- a/setup-makefiles.sh
+++ b/setup-makefiles.sh
@@ -36,25 +36,17 @@ mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE
# This file is generated by device/__MANUFACTURER__/__DEVICE__/setup-makefiles.sh
-\$(call inherit-product, vendor/__MANUFACTURER__/__DEVICE__/device-vendor-blobs.mk)
-EOF
-
-(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/full_$DEVICE-trampoline.mk
-# Copyright (C) 2010 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.
-
-# This file is generated by device/__MANUFACTURER__/__DEVICE__/setup-makefiles.sh
+# Live wallpaper packages
+PRODUCT_PACKAGES := \\
+ LiveWallpapers \\
+ LiveWallpapersPicker \\
+ MagicSmokeWallpapers \\
+ VisualizationWallpapers \\
+ librs_jni
+
+# Publish that we support the live wallpaper feature.
+PRODUCT_COPY_FILES := \\
+ packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
# NFC packages
PRODUCT_PACKAGES += \\
@@ -66,7 +58,7 @@ PRODUCT_PACKAGES += \\
# Pick up overlay for features that depend on non-open-source files
DEVICE_PACKAGE_OVERLAYS := vendor/__MANUFACTURER__/__DEVICE__/overlay
-\$(call inherit-product, device/__MANUFACTURER__/__DEVICE__/full___DEVICE__-vendor.mk)
+\$(call inherit-product, vendor/__MANUFACTURER__/__DEVICE__/device-vendor-blobs.mk)
EOF
(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/BoardConfigVendor.mk