OSDN Git Service

Use shell-script $$(...) instead of $(shell ...)
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 14 Jan 2017 13:58:55 +0000 (14:58 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 14 Jan 2017 17:54:00 +0000 (01:54 +0800)
kati doesn't support passing results of $(shell)
to other make constructs, as explained here:
https://github.com/google/kati/issues/71

Fixes the following building error in nougat-x86:

./bootable/newinstaller/Android.mk:82: kati doesn't support passing
results of $(shell) to other make constructs: date +"%F"
build/core/ninja.mk:163: recipe for target
'out/build-android_x86_64.ninja' failed
make: *** [out/build-android_x86_64.ninja] Error 1

Android.mk

index 8033c6a..74aea9a 100644 (file)
@@ -23,7 +23,7 @@ LOCAL_STATIC_LIBRARIES := libdiskconfig_host libcutils liblog
 edit_mbr := $(HOST_OUT_EXECUTABLES)/$(LOCAL_MODULE)
 include $(BUILD_HOST_EXECUTABLE)
 
-VER ?= $(shell date +"%F")
+VER ?= $$(date +"%F")
 
 # use squashfs for iso, unless explictly disabled
 ifneq ($(USE_SQUASHFS),0)