-include $(LOCAL_PATH)/system_prop.mk
# call Samsung LSI board support package
+ifneq ($(WITH_EXYNOS_BSP),)
$(call inherit-product, hardware/samsung_slsi/exynos5/exynos5.mk)
$(call inherit-product, hardware/samsung_slsi/exynos7580/exynos7580.mk)
+endif
# call the proprietary setup
$(call inherit-product, vendor/samsung/universal7580-common/universal7580-common-vendor.mk)
setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true
extract "$MY_DIR"/proprietary-files.txt "$SRC"
+extract "$MY_DIR"/proprietary-files-bsp.txt "$SRC"
BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/"$DEVICE_COMMON"/proprietary
--- /dev/null
+# Graphics
+lib/hw/gralloc.exynos5.so
+lib/hw/hwcomposer.exynos5.so
+lib/hw/memtrack.exynos5.so
+lib/libcsc.so
+lib/libexynosdisplay.so
+lib/libexynosscaler.so
+lib/libexynosgscaler.so
+lib/libexynosutils.so
+lib/libexynosv4l2.so
+lib/libfimg.so
+lib/libhdmi.so
+lib/libhwcutils.so
+lib/libmpp.so
+
+# Mobicore
+bin/mcDriverDaemon
+lib/libMcClient.so
+lib/libMcRegistry.so
+
+# OMX
+lib/libExynosOMX_Core.so
+lib/libExynosOMX_Resourcemanager.so
+lib/libstagefrighthw.so
# Camera
-lib/libexynosv4l2.so
lib/libhwjpeg.so
lib/libuniplugin.so
lib/libsensorlistener.so
-# Gralloc
-lib/hw/gralloc.exynos5.so
-
# GPS
bin/gpsd
bin/gps.cer
# Graphics
vendor/lib/egl/libGLES_mali.so
-lib/libcsc.so
-lib/libexynosscaler.so
-lib/libexynosgscaler.so
# Mobicore
bin/cs
lib/omx/libOMX.Exynos.VP8.Decoder.so|338a089ac76e867eb795343dce4ee2b5326b0c77
lib/omx/libOMX.Exynos.VP8.Encoder.so|2f13479cc28b6e3cfa92202326bc26e812a4f620
lib/omx/libOMX.Exynos.WMV.Decoder.so|829ee8de0450615bf573c418d5205de3c33b50a1
-lib/libExynosOMX_Resourcemanager.so|d928a21d8a653d8ee40c9a609e86151a476d068e
-lib/libExynosOMX_Core.so
# RIL
lib/libsecnativefeature.so
# The standard blobs
write_makefiles "$MY_DIR"/proprietary-files.txt true
+# The BSP blobs - we put a conditional in case the BSP
+# is actually being built
+printf '\n%s\n' 'ifeq ($(WITH_EXYNOS_BSP),)' >> "$PRODUCTMK"
+printf '\n%s\n' 'ifeq ($(WITH_EXYNOS_BSP),)' >> "$ANDROIDMK"
+
+write_makefiles "$MY_DIR"/proprietary-files-bsp.txt
+
+printf '%s\n' 'endif' >> "$PRODUCTMK"
+printf '%s\n' 'endif' >> "$ANDROIDMK"
+
###################################################################################################
# CUSTOM PART START #
###################################################################################################