Skip to content

Commit

Permalink
wwan/driver: code alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Beginner-Go authored and aiamadeus committed Mar 13, 2023
1 parent dd7c89a commit 8443bb1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
2 changes: 0 additions & 2 deletions package/wwan/app/fibocom-dial/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=fibocom-dial
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)


include $(INCLUDE_DIR)/package.mk

Expand Down
2 changes: 1 addition & 1 deletion package/wwan/app/luci-app-spdmodem/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk

LUCI_TITLE:=SPD Modem Server
LUCI_DEPENDS:=
LUCI_DEPENDS:=+luci-compat +kmod-sprd_pcie

include $(TOPDIR)/feeds/luci/luci.mk

Expand Down
19 changes: 9 additions & 10 deletions package/wwan/app/quectel_cm_5G/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:= quectel-CM-5G
PKG_RELEASE:=2
PKG_VERSION:=1.0

include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/package.mk

define Package/quectel-CM-5G
Expand All @@ -23,18 +23,17 @@ define Build/Compile
ARCH="$(LINUX_KARCH)" \
SUBDIRS="$(PKG_BUILD_DIR)" \
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
CC="$(TARGET_CC)" \

CC="$(TARGET_CC)"
endef

define Package/quectel-CM-5G/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/lib/netifd/proto $(1)/lib/netifd
$(INSTALL_BIN) $(PKG_BUILD_DIR)/quectel-CM $(1)/usr/bin/quectel-CM
$(INSTALL_BIN) ./files/rmnet_init.sh $(1)/usr/bin
$(INSTALL_BIN) ./files/rmnet.sh $(1)/lib/netifd/proto
$(INSTALL_BIN) ./files/rmnet.script $(1)/lib/netifd
$(INSTALL_BIN) ./files/rmnet6.sh $(1)/lib/netifd/proto
$(INSTALL_BIN) ./files/rmnet6.script $(1)/lib/netifd
$(INSTALL_DIR) $(1)/usr/bin $(1)/lib/netifd/proto $(1)/lib/netifd
$(INSTALL_BIN) $(PKG_BUILD_DIR)/quectel-CM $(1)/usr/bin/quectel-CM
$(INSTALL_BIN) ./files/rmnet.sh $(1)/lib/netifd/proto
$(INSTALL_BIN) ./files/rmnet6.sh $(1)/lib/netifd/proto
$(INSTALL_BIN) ./files/rmnet6.script $(1)/lib/netifd
$(INSTALL_BIN) ./files/rmnet.script $(1)/lib/netifd
$(INSTALL_BIN) ./files/rmnet_init.sh $(1)/usr/bin
endef

$(eval $(call BuildPackage,quectel-CM-5G))
2 changes: 1 addition & 1 deletion package/wwan/driver/quectel_MHI/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/package.mk

define KernelPackage/pcie_mhi
SUBMENU:=PCIE Support
SUBMENU:=WWAN Support
TITLE:=Kernel pcie driver for MHI device
DEPENDS:=+pciids +pciutils +quectel-CM-5G
FILES:=$(PKG_BUILD_DIR)/pcie_mhi.ko
Expand Down
3 changes: 1 addition & 2 deletions package/wwan/driver/quectel_SRPD_PCIE/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/package.mk

define KernelPackage/sprd_pcie
SUBMENU:=PCIE Support
SUBMENU:=WWAN Support
TITLE:=Kernel pcie driver for SPRD device
DEPENDS:=
FILES:=$(PKG_BUILD_DIR)/sprd_pcie.ko
AUTOLOAD:=$(call AutoLoad,41,sprd_pcie)
endef
Expand Down

0 comments on commit 8443bb1

Please sign in to comment.