2 # Copyright (C) 2014-2015 The Android-x86 Open Source Project
4 # Licensed under the Apache License, Version 2.0 (the "License");
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.apache.org/licenses/LICENSE-2.0
11 LOCAL_PATH := $(my-dir)
13 SYMLINKS := $(addprefix $(TARGET_OUT)/lib,$(subst $(LOCAL_PATH),,$(shell find $(LOCAL_PATH)/firmware -type l)))
15 $(SYMLINKS): FW_PATH := $(LOCAL_PATH)
17 @link_to=`readlink $(subst $(TARGET_OUT)/lib,$(FW_PATH),$@)`; \
18 echo "Symlink: $@ -> $$link_to"; \
19 mkdir -p $(@D); ln -sf $$link_to $@
21 ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)
23 include $(call all-makefiles-under,$(LOCAL_PATH))