Makefile cleanup for excelsior.
Change-Id: I338b8f1e7851fc015fb4689277905527d0e306b7
diff --git a/Makefile b/Makefile
index 13d3949..0c92eb3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,41 +1,13 @@
-###############################################################################
-# SDIO
-###############################################################################
SDIO_MOD_NAME = btmtksdio
SDIO_CFILES := \
btmtk_sdio.c btmtk_main.c
$(SDIO_MOD_NAME)-objs := $(SDIO_CFILES:.c=.o)
-
-###############################################################################
-# Common
-###############################################################################
-ifeq ($(PLATFORM),MT8516_YOCTO)
- obj-m := $(SDIO_MOD_NAME).o
- ifeq ($(SUPPORT_MTK_BT_STEREO),yes)
- ccflags-y += -DSUPPORT_BT_STEREO=1
- endif
-else
- obj-m := $(USB_MOD_NAME).o $(SDIO_MOD_NAME).o
-endif
+obj-m := $(SDIO_MOD_NAME).o
all:
- $(MAKE) -C $(KERNEL_SRC) M=$(PWD)
-
-modules_install:
- $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules_install
+ $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL_SRC) M=$(PWD) modules
clean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.order
rm -rf .tmp_versions Modules.symvers
-
-# Check coding style
-export IGNORE_CODING_STYLE_RULES := NEW_TYPEDEFS,LEADING_SPACE,CODE_INDENT,SUSPECT_CODE_INDENT
-ccs:
- ./util/checkpatch.pl --no-tree --show-types --max-line-length=120 --ignore $(IGNORE_CODING_STYLE_RULES) -f btmtk_config.h
- ./util/checkpatch.pl --no-tree --show-types --max-line-length=120 --ignore $(IGNORE_CODING_STYLE_RULES) -f btmtk_define.h
- ./util/checkpatch.pl --no-tree --show-types --max-line-length=120 --ignore $(IGNORE_CODING_STYLE_RULES) -f btmtk_drv.h
- ./util/checkpatch.pl --no-tree --show-types --max-line-length=120 --ignore $(IGNORE_CODING_STYLE_RULES) -f btmtk_main.c
- ./util/checkpatch.pl --no-tree --show-types --max-line-length=120 --ignore $(IGNORE_CODING_STYLE_RULES) -f btmtk_sdio.c
- ./util/checkpatch.pl --no-tree --show-types --max-line-length=120 --ignore $(IGNORE_CODING_STYLE_RULES) -f btmtk_sdio.h
-