Prechádzať zdrojové kódy

cnss2: Support make target 'modules'

Yocto module.bbclass calls 'make modules' from wlan platform
root dir to compile external modules, it gets the error
"make: *** No rule to make target 'modules'.  Stop."

Update Makefile to support make target 'modules'.

Change-Id: I5b20d71eeedb5dac987d42768d609b32bace1b79
CRs-Fixed: 3401306
Xiaoning Ma 2 rokov pred
rodič
commit
d1e484f291
1 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  1. 4 2
      Makefile

+ 4 - 2
Makefile

@@ -26,8 +26,10 @@ KBUILD_OPTIONS += CONFIG_CNSS2_SSR_DRIVER_DUMP=y
 endif
 endif
 
-all:
-	$(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS)
+all: modules
+
+%:
+	$(MAKE) -C $(KERNEL_SRC) M=$(M) $@ $(KBUILD_OPTIONS)
 
 modules_install:
 	$(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(M) modules_install