Commit bee4bcf8 authored by Alessandro Rubini's avatar Alessandro Rubini

wr_vic: moved to wr_minic dir; simplified make

This unifies wr_vic and wr_minic in a single directory,
which results in a simplification of Makefiles.
EXTRA_CFLAGS has been removed as it's now not needed any more.
parent 3e463624
export WR_MODULES_DIR = $(shell /bin/pwd) DIRS = wr_minic
DIRS = wr_vic wr_minic
# We may "LINUX ?= /usr/src/linux-wrswitch", but it's better to leave it empty # We may "LINUX ?= /usr/src/linux-wrswitch", but it's better to leave it empty
......
obj-m := wr_minic.o obj-m := wr_vic.o wr_minic.o
# This is needed to include wr_vic.h
WR_MODULES_DIR ?= $(shell /bin/pwd)/..
EXTRA_CFLAGS = -I$(WR_MODULES_DIR)/wr_vic
export ARCH ?= arm export ARCH ?= arm
export CROSS_COMPILE ?= $(CROSS_COMPILE_ARM) export CROSS_COMPILE ?= $(CROSS_COMPILE_ARM)
......
obj-m := wr_vic.o
export ARCH ?= arm
export CROSS_COMPILE ?= $(CROSS_COMPILE_ARM)
all modules:
$(MAKE) CONFIG_DEBUG_SECTION_MISMATCH=y \
-C $(LINUX) SUBDIRS=$(shell /bin/pwd) modules
# We might "$(MAKE) -C $(LINUX)" but "make clean" with no LINUX defined
# is sometimes useful to have
clean:
rm -f *.mod.c *.o *.ko .*cmd Module.symvers modules.order
rm -rf .tmp_versions
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