From 47652e8d16ce55b49ea5435b1216b002cbc366a9 Mon Sep 17 00:00:00 2001 From: ppisa Date: Tue, 23 Dec 2003 00:50:14 +0000 Subject: [PATCH] Added missing spin-lock initialization and minor Makefiles update. --- lincan/Makefile | 24 ++++++++++-------------- lincan/src/Makefile | 4 ++++ lincan/src/can_quekern.c | 3 +-- lincan/utils/Makefile | 5 +++++ 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/lincan/Makefile b/lincan/Makefile index 87f2000..d643545 100644 --- a/lincan/Makefile +++ b/lincan/Makefile @@ -9,37 +9,33 @@ # ########## The following options can be changed ########## +SUBDIRS = src utils -ifneq ($(wildcard ./Standalone.mk),) -# Standalone make outside of OCERA framework +ifndef SOURCES_DIR +SOURCES_DIR := $(shell ( pwd -L ) ) +endif -SUBDIRS = src utils +ifneq ($(wildcard $(SOURCES_DIR)/Standalone.mk),) +# Standalone make outside of OCERA framework all: default .PHONY: dep default subdirs clean cleandepend +.PHONY: check-dir include-pass library-pass binary-pass utils-pass kernel-lib-pass kernel-pass dirs = src utils -default dep clean install: - $(foreach dir, $(dirs), $(MAKE) -C $(dir) $@ ; ) +default dep clean install utils-pass kernel-pass: + $(foreach dir, $(dirs), $(MAKE) -C $(SOURCES_DIR)/$(dir) \ + SOURCES_DIR=$(SOURCES_DIR)/$(dir) $@ ; ) else # Build in structure of OCERA framework TOPDIR = $(LINUX_DIR) -COMPONENT = CONFIG_OC_LINCAN -COMPONENT_NAME = lincan -COMPONENT_TARGETS = default ifneq ($(wildcard ../../../../ocera.mk),) include ../../../../ocera.mk - -dirs = src utils - -default dep clean install: - $(foreach dir, $(dirs), $(MAKE) -C $(dir) $@ ; ) - else all: @echo -e "\nTo build LinCAN driver for OCERA framework, ocera.mk file have" diff --git a/lincan/src/Makefile b/lincan/src/Makefile index ae8bd4d..1a0f0e9 100644 --- a/lincan/src/Makefile +++ b/lincan/src/Makefile @@ -17,6 +17,10 @@ ifneq ($(wildcard ../Standalone.mk),) all : default +.PHONY: kernel-pass utils-pass + +kernel-pass : default + else # Build in structure of OCERA framework diff --git a/lincan/src/can_quekern.c b/lincan/src/can_quekern.c index fa7e33c..8725f64 100644 --- a/lincan/src/can_quekern.c +++ b/lincan/src/can_quekern.c @@ -414,6 +414,5 @@ int canqueue_ends_dispose_kern(struct canque_ends_t *qends, int sync) void canqueue_kern_initialize() { - - + can_spin_lock_init(&canque_dead_func_lock); } diff --git a/lincan/utils/Makefile b/lincan/utils/Makefile index a05c342..1912466 100644 --- a/lincan/utils/Makefile +++ b/lincan/utils/Makefile @@ -17,8 +17,13 @@ CFLAGS = -I../include -O2 -Wall all: default +.PHONY: dep default subdirs clean cleandepend +.PHONY: check-dir include-pass library-pass binary-pass utils-pass kernel-pass + default: utils +utils-pass: utils + dep: $(CC) $(CFLAGS) $(CPPFLAGS) -w -E -M *.c $(MORE_C_FILES) > .depend -- 2.39.2