Message ID | 20181130073004.18051-4-zhouyousong@yunionyun.com |
---|---|
State | Accepted |
Headers | show |
Series | build: patches from OpenWrt | expand |
diff --git a/datapath/linux/Makefile.main.in b/datapath/linux/Makefile.main.in index 6e245c70c..328bbfbb6 100644 --- a/datapath/linux/Makefile.main.in +++ b/datapath/linux/Makefile.main.in @@ -68,10 +68,10 @@ ifeq (,$(wildcard $(CONFIG_FILE))) endif default: - $(MAKE) -C $(KSRC) M=$(builddir) modules + $(MAKE) -C $(KSRC) $(if @KARCH@,ARCH=@KARCH@) M=$(builddir) modules modules_install: - $(MAKE) -C $(KSRC) M=$(builddir) modules_install + $(MAKE) -C $(KSRC) $(if @KARCH@,ARCH=@KARCH@) M=$(builddir) modules_install /sbin/depmod `sed -n 's/#define UTS_RELEASE "\([^"]*\)"/\1/p' $(KSRC)/include/generated/utsrelease.h` endif