diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2011-07-19 15:28:50 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2011-07-20 07:44:56 -0700 |
commit | 2e66503d508a1ac6170bceeab2d3f9264bbf8233 (patch) | |
tree | 951d0121c6be98516a6c6f33dfc3c35ffa7688c7 | |
parent | 324e50d7344a222059cd312b093485b3045cc856 (diff) | |
download | panda-2e66503d508a1ac6170bceeab2d3f9264bbf8233.tar.gz |
Handle makefiles in vendor/ti/panda when present.
Generate them when relevant.
Change-Id: I29bf6c187702429ade690fced6c571371860d485
-rw-r--r-- | BoardConfig.mk | 2 | ||||
-rw-r--r-- | device.mk | 1 | ||||
-rwxr-xr-x | setup-makefiles.sh | 58 |
3 files changed, 60 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index c6aec47..39f768d 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -20,7 +20,7 @@ BOARD_USES_GENERIC_AUDIO := true USE_CAMERA_STUB := true # Use the non-open-source parts, if they're present -#-include vendor/ti/panda/BoardConfigVendor.mk +-include vendor/ti/panda/BoardConfigVendor.mk TARGET_CPU_ABI := armeabi-v7a TARGET_CPU_ABI2 := armeabi @@ -51,6 +51,7 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ make_ext4fs +$(call inherit-product-if-exists, vendor/ti/panda/device-vendor.mk) $(call inherit-product, frameworks/base/build/tablet-dalvik-heap.mk) $(call inherit-product, hardware/ti/omap4/omap4.mk) $(call inherit-product-if-exists, vendor/ti/proprietary/omap4/ti-omap4-vendor.mk) diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..d58d591 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,58 @@ +#!/bin/sh + +# 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. + +DEVICE=panda +MANUFACTURER=ti + +mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE + +(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/device-vendor.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 + +\$(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 +# 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 +EOF |