diff --git a/devices/rockchip_armv8/patches/r6s.patch b/devices/rockchip_armv8/patches/r6s.patch index e717bdc99df4..cab3e767b178 100644 --- a/devices/rockchip_armv8/patches/r6s.patch +++ b/devices/rockchip_armv8/patches/r6s.patch @@ -125,7 +125,7 @@ include $(SUBTARGET).mk +define Image/Build -+ if [[ $(PROFILE_SANITIZED) == "friendlyarm_nanopi-r6s" || $(PROFILE_SANITIZED) == "friendlyarm_nanopi-r6c" ]]; then \ ++ if [[ "$(PROFILE_SANITIZED)" == "friendlyarm_nanopi-r6s" || "$(PROFILE_SANITIZED)" == "friendlyarm_nanopi-r6c" ]]; then \ + export IMG_PREFIX="$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))"; \ + export BIN_DIR=$(BIN_DIR); \ + export TOPDIR=$(TOPDIR); \