package wlc, jffs2root, mtd as "openwrt-utils"
SVN-Revision: 493v19.07.3_mercusys_ac12_duma
parent
e710c54232
commit
53633c24d4
@ -0,0 +1,10 @@
|
||||
Package: openwrt-utils
|
||||
Priority: optional
|
||||
Section: sys
|
||||
Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
|
||||
Source: buildroot internal
|
||||
Description: Basic OpenWrt utilities
|
||||
This package contains:
|
||||
mtd: Tool for modifying the flash chip
|
||||
jffs2root: Expands the jffs2 root partition
|
||||
wlc: Tool for setting various broadcom driver options
|
@ -1,36 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=wlc
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
EXTRA_CFLAGS := -c -I. -I../include
|
||||
|
||||
all: compile
|
||||
|
||||
WLC_OBJS:=
|
||||
define OBJ_template
|
||||
$(PKG_BUILD_DIR)/$(1): $(PKG_BUILD_DIR)
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) $(EXTRA_CFLAGS) -o $$@ $$(patsubst %.o,%.c,$(1))
|
||||
WLC_OBJS += $(PKG_BUILD_DIR)/$(1)
|
||||
endef
|
||||
|
||||
OBJS := wlc.o
|
||||
$(foreach obj,$(OBJS),$(eval $(call OBJ_template,$(obj))))
|
||||
|
||||
$(PKG_BUILD_DIR):
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
|
||||
$(PKG_BUILD_DIR)/wlc: $(WLC_OBJS)
|
||||
$(TARGET_CC) -o $@ $^ -L$(BUILD_DIR)/libshared -lshared
|
||||
|
||||
$(TARGET_DIR)/usr/sbin/wlc: $(PKG_BUILD_DIR)/wlc
|
||||
install -m 755 $^ $@
|
||||
$(STRIP) $@
|
||||
|
||||
compile: $(PKG_BUILD_DIR)/wlc
|
||||
install: $(TARGET_DIR)/usr/sbin/wlc
|
||||
|
||||
clean:
|
||||
rm -rf $(PKG_BUILD_DIR)
|
Loading…
Reference in New Issue