-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
71 lines (55 loc) · 1.64 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Copyright (C) 2005-2019 [email protected]
#
# This is non-free software, licensed under author,more code from Apple/Tuxera
#
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=fs-qntfs
PKG_RELEASE:=4
PKG_MAINTAINER:=lintel <[email protected]>
USE_SRC=$(shell ls ./src/ 2>/dev/null >/dev/null && echo 1)
include $(INCLUDE_DIR)/package.mk
define KernelPackage/fs-qntfs
SUBMENU:=Filesystems
TITLE:=PandoraBox Quick-NTFS filesystem
FILES:=$(PKG_BUILD_DIR)/qntfs.ko
DEPENDS:=+kmod-nls-cp936 +kmod-nls-utf8 +kmod-nls-cp437 +kmod-nls-iso8859-1
AUTOLOAD:=$(call AutoLoad,30,qntfs,1)
endef
define KernelPackage/fs-qntfs/description
a Kernel module drvier base on NTFS-3G support NTFS
endef
EXTRA_KCONFIG:= \
CONFIG_QNTFS_FS=m \
CONFIG_QNTFS_SYMLINKS=y
MAKE_OPTS:= \
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
SUBDIRS="$(PKG_BUILD_DIR)" \
$(EXTRA_KCONFIG)
ifneq ($(USE_SRC),)
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" \
$(MAKE_OPTS) \
modules
@echo ----------Build:$(CONFIG_TARGET_BOARD)-$(CONFIG_TARGET_SUBTARGET)----------
mkdir -p ./files/$(CONFIG_TARGET_BOARD)-$(CONFIG_TARGET_SUBTARGET)
$(CP) $(PKG_BUILD_DIR)/qntfs.ko ./files/$(CONFIG_TARGET_BOARD)-$(CONFIG_TARGET_SUBTARGET)/
endef
else
define Build/Prepare
@echo ----------Build:$(CONFIG_TARGET_BOARD)-$(CONFIG_TARGET_SUBTARGET)----------
mkdir -p $(PKG_BUILD_DIR)/
$(CP) ./files/$(CONFIG_TARGET_BOARD)-$(CONFIG_TARGET_SUBTARGET)/qntfs.ko $(PKG_BUILD_DIR)/
endef
define Build/Compile
echo
endef
endif
$(eval $(call KernelPackage,fs-qntfs))