freewrt_2_0
|
Last change
on this file since 18c227bd was 94a3833, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago |
|
do not overwrite ARCH in mk/targets.mk
ARCH is used for ipkg package creation.
Add two new variables:
CPU_ARCH -> architecture + endianess f.e. mipsel
KERNEL_ARCH -> architecture for Kernel modules f.e. mips
fix all kernel module packages to use these variables.
start creation of board+kernel+model+fs specific
base-files-arch and kernel packages. needed for web image builder (wib)
git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@804 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
1.5 KB
|
| Line | |
|---|
| 1 | # $FreeWRT$
|
|---|
| 2 | #-
|
|---|
| 3 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 4 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 5 | # or at http://www.freewrt.org/licence for details.
|
|---|
| 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 | include $(TOPDIR)/mk/targets.mk
|
|---|
| 9 |
|
|---|
| 10 | PKG_NAME:= shfs
|
|---|
| 11 | PKG_VERSION:= 0.35
|
|---|
| 12 | PKG_RELEASE:= 3
|
|---|
| 13 | PKG_MD5SUM:= 016f49d71bc32eee2b5d11fc1600cfbe
|
|---|
| 14 |
|
|---|
| 15 | PKG_SOURCE_URL:= @SF/$(PKG_NAME)
|
|---|
| 16 |
|
|---|
| 17 | include $(TOPDIR)/mk/package.mk
|
|---|
| 18 |
|
|---|
| 19 | $(eval $(call PKG_template,SHFS,shfs,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 20 |
|
|---|
| 21 | $(WRKBUILD)/.configured:
|
|---|
| 22 | touch $@
|
|---|
| 23 |
|
|---|
| 24 | $(WRKBUILD)/.built:
|
|---|
| 25 | rm -rf $(WRKINST)
|
|---|
| 26 | mkdir -p $(WRKINST)
|
|---|
| 27 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 28 | OFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 29 | CC="$(TARGET_CC)" \
|
|---|
| 30 | LINKER="$(TARGET_CC)" \
|
|---|
| 31 | KERNEL_SOURCES="$(LINUX_DIR)" \
|
|---|
| 32 | ROOT="$(WRKINST)" \
|
|---|
| 33 | utils utils-install
|
|---|
| 34 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 35 | ARCH="$(KERNEL_ARCH)" \
|
|---|
| 36 | CROSS_COMPILE="$(TARGET_CROSS)" \
|
|---|
| 37 | PATH="$(TARGET_PATH)" \
|
|---|
| 38 | OFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 39 | CC="$(TARGET_CC)" \
|
|---|
| 40 | LINKER="$(TARGET_CC)" \
|
|---|
| 41 | KERNEL="$(KERNEL_VERSION)" \
|
|---|
| 42 | KERNEL_SOURCES="$(LINUX_DIR)" \
|
|---|
| 43 | ROOT="$(WRKINST)" \
|
|---|
| 44 | module module-install
|
|---|
| 45 | touch $@
|
|---|
| 46 |
|
|---|
| 47 | $(IPKG_SHFS):
|
|---|
| 48 | install -m0755 -d $(IDIR_SHFS)/usr/sbin
|
|---|
| 49 | $(CP) $(WRKINST)/usr/sbin/shfs{,u}mount $(IDIR_SHFS)/usr/sbin/
|
|---|
| 50 | $(CP) $(WRKINST)/usr/sbin/mount.shfs $(IDIR_SHFS)/usr/sbin/
|
|---|
| 51 | $(RSTRIP) $(IDIR_SHFS)
|
|---|
| 52 | install -m0755 -d $(IDIR_SHFS)/lib/modules/$(KERNEL_VERSION)
|
|---|
| 53 | $(CP) $(WRKINST)/lib/modules/$(KERNEL_VERSION)/kernel/fs/shfs/shfs.$(KERNEL_MOD_SUFFIX) \
|
|---|
| 54 | $(IDIR_SHFS)/lib/modules/$(KERNEL_VERSION)/
|
|---|
| 55 | $(IPKG_BUILD) $(IDIR_SHFS) $(PACKAGE_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.