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 @@ ...@@ -2,6 +2,8 @@
# #
# SPDX-FileCopyrightText: 2019 CERN # SPDX-FileCopyrightText: 2019 CERN
PREFIX ?= /
all: all:
$(MAKE) -C software $(MAKE) -C software
......
...@@ -9,6 +9,8 @@ CURDIR:=$(shell /bin/pwd) ...@@ -9,6 +9,8 @@ CURDIR:=$(shell /bin/pwd)
REPO_PARENT ?= $(CURDIR)/.. REPO_PARENT ?= $(CURDIR)/..
-include $(REPO_PARENT)/parent_common.mk -include $(REPO_PARENT)/parent_common.mk
PREFIX ?= /
DIRS = kernel lib tools include DIRS = kernel lib tools include
all clean modules install modules_install: $(DIRS) all clean modules install modules_install: $(DIRS)
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# #
# SPDX-FileCopyrightText: 2019 CERN # SPDX-FileCopyrightText: 2019 CERN
PREFIX ?= /
KVERSION ?= $(shell uname -r) KVERSION ?= $(shell uname -r)
LINUX ?= /lib/modules/$(KVERSION)/build LINUX ?= /lib/modules/$(KVERSION)/build
DKMS ?= 0 DKMS ?= 0
...@@ -43,8 +45,9 @@ ifeq ($(DKMS), 0) ...@@ -43,8 +45,9 @@ ifeq ($(DKMS), 0)
$(MAKE) -C ../include/mockturtle/hw/ $(MAKE) -C ../include/mockturtle/hw/
endif endif
install modules_install: install: modules_install
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) 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 # be able to run the "clean" rule even if $(LINUX) is not valid
clean: 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