summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/cbmem/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/cbmem/Makefile b/util/cbmem/Makefile
index a170875574..9219a08f3c 100644
--- a/util/cbmem/Makefile
+++ b/util/cbmem/Makefile
@@ -2,7 +2,8 @@
## SPDX-License-Identifier: GPL-2.0-only
PROGRAM = cbmem
-ROOT = ../../src
+TOP ?= $(abspath ../..)
+ROOT = $(TOP)/src
CC ?= $(CROSS_COMPILE)gcc
INSTALL ?= /usr/bin/env install
PREFIX ?= /usr/local