Android-x86
Fork

  • R/O
  • HTTP
  • SSH
  • HTTPS

device-generic-firmware: コミット

device/generic/firmware


コミットメタ情報

リビジョンee5494566ad4d9475edc2591960b90ceb0ec1bb6 (tree)
日時2016-06-05 23:29:09
作者Chih-Wei Huang <cwhuang@linu...>
コミッターChih-Wei Huang

ログメッセージ

Copy firmwares into $(TARGET_OUT)/lib/firmware

Keep the symbolic links as well.

変更サマリ

差分

--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,21 @@
1+#
2+# Copyright (C) 2016 The Android-x86 Open Source Project
3+#
4+# Licensed under the GNU General Public License Version 2 or later.
5+# You may not use this file except in compliance with the License.
6+# You may obtain a copy of the License at
7+#
8+# http://www.gnu.org/licenses/gpl.html
9+#
10+
11+LOCAL_PATH := $(my-dir)
12+
13+SYMLINKS := $(subst $(LOCAL_PATH),$(TARGET_OUT)/lib/firmware,$(shell find $(LOCAL_PATH) -type l))
14+
15+$(SYMLINKS): FW_PATH := $(LOCAL_PATH)
16+$(SYMLINKS):
17+ @link_to=`readlink $(subst $(TARGET_OUT)/lib/firmware,$(FW_PATH),$@)`; \
18+ echo "Symlink: $@ -> $$link_to"; \
19+ mkdir -p $(@D); ln -sf $$link_to $@
20+
21+ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)
--- /dev/null
+++ b/firmware.mk
@@ -0,0 +1,15 @@
1+#
2+# Copyright (C) 2016 The Android-x86 Open Source Project
3+#
4+# Licensed under the GNU General Public License Version 2 or later.
5+# You may not use this file except in compliance with the License.
6+# You may obtain a copy of the License at
7+#
8+# http://www.gnu.org/licenses/gpl.html
9+#
10+
11+LOCAL_FIRMWARES_DIR ?= $(LOCAL_PATH)
12+LOCAL_FIRMWARES ?= $(filter-out .git/% %.mk,$(subst ./,,$(shell cd $(LOCAL_FIRMWARES_DIR) && find . -type f)))
13+
14+PRODUCT_COPY_FILES := \
15+ $(foreach f,$(LOCAL_FIRMWARES),$(LOCAL_FIRMWARES_DIR)/$(f):system/lib/firmware/$(f))
旧リポジトリブラウザで表示