mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
move package/linux into target/linux, use wbx' new kernel code. support building images with more than one kernel, split kernel module parts off of packages that use their own kernel modules (fuse, shfs, openswan). some cleanup in the image building process in target/. image builder is disabled for now, needs some fixing.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1085 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
36
target/linux/package/Makefile
Normal file
36
target/linux/package/Makefile
Normal file
@@ -0,0 +1,36 @@
|
||||
# Main makefile for the packages
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
|
||||
package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
|
||||
package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
|
||||
|
||||
all: compile install
|
||||
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
|
||||
compile: $(patsubst %,%-compile,$(package-y) $(package-m))
|
||||
install: $(patsubst %,%-install,$(package-y))
|
||||
|
||||
%-prepare:
|
||||
$(MAKE) -C $(patsubst %-prepare,%,$@) \
|
||||
BUILD_DIR="$(BUILD_DIR)" \
|
||||
KERNEL_DIR="$(KERNEL_DIR)" \
|
||||
LINUX_VERSION="$(LINUX_VERSION)" \
|
||||
prepare
|
||||
|
||||
%-compile: %-prepare
|
||||
$(MAKE) -C $(patsubst %-compile,%,$@) \
|
||||
BUILD_DIR="$(BUILD_DIR)" \
|
||||
KERNEL_DIR="$(KERNEL_DIR)" \
|
||||
LINUX_VERSION="$(LINUX_VERSION)" \
|
||||
compile
|
||||
|
||||
%-install: %-compile
|
||||
$(MAKE) -C $(patsubst %-install,%,$@) \
|
||||
BUILD_DIR="$(BUILD_DIR)" \
|
||||
KERNEL_DIR="$(KERNEL_DIR)" \
|
||||
LINUX_VERSION="$(LINUX_VERSION)" \
|
||||
install
|
||||
|
||||
%-clean:
|
||||
@$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
||||
|
||||
Reference in New Issue
Block a user