rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
- CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" \
+ $(TARGET_CONFIGURE_OPTS) \
COPT_FLAGS="$(TARGET_CFLAGS)" \
KERNEL_DIR="./include/linux"
endef
# Compile wlc
$(MAKE) -C $(PKG_BUILD_DIR)/wlc \
$(TARGET_CONFIGURE_OPTS) \
- CC="$(TARGET_CC)" \
CFLAGS="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
all
endef
define Build/Compile/$(2)
$(call Build/CompileTarget,$(2))
endef
- endif
-
- define Package/$(1)/install
+ define Package/$(1)/install
$(call Package/InstallTemplate,$(1),$(2))
- endef
+ endef
+ endif
endef
define Build/Configure
endef
define Build/Configure
- $(call Build/Configure/Default,)
+ $(call Build/Configure/Default)
# prevent autoheader invocation
touch $(PKG_BUILD_DIR)/stamp-h.in
endef
endef
define Build/Compile
- rm -rf $(PKG_INSTALL_DIR)
- mkdir -p $(PKG_INSTALL_DIR)
- $(MAKE) -C $(PKG_BUILD_DIR) \
- CFLAGS="$(TARGET_CFLAGS)" \
- all install
+ $(call Build/Compile/Default,CFLAGS="$(TARGET_CFLAGS)" all install)
endef
define Package/pcmcia-cs/install
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
-define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) \
- CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
- all
-endef
-
define Package/robocfg/install
install -d -m0755 $(1)/sbin
install -m0755 $(PKG_BUILD_DIR)/robocfg $(1)/sbin/
CC="$(TARGET_CC)" \
CPP="$(TARGET_CC)" \
LD="$(TARGET_CROSS)ld" \
- STAGING_DIR=$(STAGING_DIR) \
KERNELVERSION="$(KERNEL)" \
KERNEL_SOURCE="$(LINUX_DIR)" \
KDIR="$(LINUX_DIR)" \