Commit 25295f32 authored by Federico Vaga's avatar Federico Vaga

[sw] improve driver installation

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 0b6030b4
PREFIX ?= /
GIT_VERSION := $(shell git describe --always --dirty --long --tags)
VERSION := $(shell git describe --tags --abbrev=0 | tr -d 'v')
GCORES_SW := $(GCORES)/software
......@@ -2,15 +2,23 @@
#
# Copyright (C) 2019 CERN
TOP_DIR ?= $(shell pwd)/../../../
-include Makefile.specific
REPO_PARENT ?= $(shell /bin/pwd)/../..
-include $(REPO_PARENT)/parent_common.mk
GCORES ?= $(TOP_DIR)
include $(GCORES)/common.mk
LINUX ?= /lib/modules/$(shell uname -r)/build
all: modules
clean modules help modules_install:
clean modules help:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) $@
modules_install:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) INSTALL_MOD_PATH=$(PREFIX) $@
.PHONY: all modules clean help install modules_install
......@@ -6,15 +6,23 @@
#
# Copyright (C) 2019 CERN
TOP_DIR ?= $(shell pwd)/../../../../../
-include Makefile.specific
REPO_PARENT ?= $(shell /bin/pwd)/../..
-include $(REPO_PARENT)/parent_common.mk
GCORES ?= $(TOP_DIR)
include $(GCORES)/common.mk
LINUX ?= /lib/modules/$(shell uname -r)/build
all: modules
clean modules help modules_install:
clean modules help:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) CONFIG_I2C_OCORES=m $@
modules_install:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) INSTALL_MOD_PATH=$(PREFIX) $@
.PHONY: all modules clean help install modules_install
......@@ -2,15 +2,23 @@
#
# Copyright (C) 2019 CERN
TOP_DIR ?= $(shell pwd)/../../../../
-include Makefile.specific
REPO_PARENT ?= $(shell /bin/pwd)/../..
-include $(REPO_PARENT)/parent_common.mk
GCORES ?= $(TOP_DIR)
include $(GCORES)/common.mk
LINUX ?= /lib/modules/$(shell uname -r)/build
all: modules
clean modules help modules_install:
clean modules help:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) CONFIG_SPI_OCORES=m $@
modules_install:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) INSTALL_MOD_PATH=$(PREFIX) $@
.PHONY: all modules clean help install modules_install
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