2 # Copyright (C) 2016 The Android-x86 Open Source Project
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
8 # http://www.gnu.org/licenses/gpl.html
11 LOCAL_PATH := $(my-dir)
13 SYMLINKS := $(subst $(LOCAL_PATH),$(TARGET_OUT)/lib/firmware,$(filter-out $(LOCAL_PATH)/.git/%,$(shell find $(LOCAL_PATH) -type l)))
15 $(SYMLINKS): FW_PATH := $(LOCAL_PATH)
17 @link_to=`readlink $(subst $(TARGET_OUT)/lib/firmware,$(FW_PATH),$@)`; \
18 echo "Symlink: $@ -> $$link_to"; \
19 mkdir -p $(@D); ln -sf $$link_to $@
21 ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)