Commit ee2f9337 authored by Federico Vaga's avatar Federico Vaga

sw: add missing PREFIX in Makefiles

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent c2096e59
......@@ -2,6 +2,8 @@
#
# SPDX-FileCopyrightText: 2019 CERN
PREFIX ?= /
all:
$(MAKE) -C software
......
......@@ -9,6 +9,8 @@ CURDIR:=$(shell /bin/pwd)
REPO_PARENT ?= $(CURDIR)/..
-include $(REPO_PARENT)/parent_common.mk
PREFIX ?= /
DIRS = kernel lib tools include
all clean modules install modules_install: $(DIRS)
......
......@@ -2,6 +2,8 @@
#
# SPDX-FileCopyrightText: 2019 CERN
PREFIX ?= /
KVERSION ?= $(shell uname -r)
LINUX ?= /lib/modules/$(KVERSION)/build
DKMS ?= 0
......@@ -43,8 +45,9 @@ ifeq ($(DKMS), 0)
$(MAKE) -C ../include/mockturtle/hw/
endif
install modules_install:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) modules_install
install: modules_install
modules_install:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) INSTALL_MOD_PATH=$(PREFIX) $@
# be able to run the "clean" rule even if $(LINUX) is not valid
clean:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment