binary.mk dynamic_binary.mk prebuild.mk 都有 include base_rule.mk
在上面的 mk 開頭都加上
$(info in binary.mk)
或 dynamic_binary.mk,, prebuild.mk..
再 make 一次,發現是 binary.mk include base_rule.mk 後出現 error message.
找 binary.mk
有 dynamic_binary.mk executable.mk ...
猜是 executable.mk
印出來看,是哪一個 variable 被 define..
out/target/product/myBBG/system/bin/unifi_helper
build/core/base_rules.mk:112: *** hardware/libhardware_legacy/unifi-linux/unifi_helper:
LOCAL_BUILT_MODULE and LOCAL_INSTALLED_MODULE must not be defined by component makefiles. Stop.
另一個是:
out/target/product/imx51_BBG/system/bin/unifi_manager
build/core/base_rules.mk:112: *** hardware/libhardware_legacy/unifi-linux/os_linux:
LOCAL_BUILT_MODULE and LOCAL_INSTALLED_MODULE must not be defined by component makefiles. Stop.
好像是擺放位置的問題:
hardware\libhardware_legacy 目的在 build 出 libhardware_legacy.so
所以該目錄下的 各 folder 都不能再define LOCAL_MODULE.
所以把 unifi_wifi 擺在 hardware/libhardware_legacy 下是不行的
果然,搬移到 external 後 就 OK 了。
沒有留言:
張貼留言