source: packages/utils/ap51-flash/Makefile @ 20374

Last change on this file since 20374 was 20374, checked in by linus, 7 years ago

[packages] ap51-flash: update ap51-flash and add loop option

The newer ap51-flash version and updated scripts will fix a
problem on big-endian machines and uses a lot less memory
(libpcap is not required anymore, no more image-buffering).

A loop-script per ap51-flash instance will take care of
restarting the app if selected in uci-config file.

File size: 1.5 KB
Line 
1#
2# Copyright (C) 2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=ap51-flash
10PKG_REV:=232
11PKG_VERSION:=r$(PKG_REV)
12PKG_RELEASE:=1
13
14PKG_SOURCE_PROTO:=svn
15PKG_SOURCE_VERSION:=$(PKG_REV)
16PKG_SOURCE_SUBDIR:=ap51-flash-$(PKG_VERSION)
17PKG_SOURCE_URL:=http://dev.open-mesh.com/downloads/svn/ap51-flash/trunk
18PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
19
20include $(INCLUDE_DIR)/package.mk
21
22ifeq ($(CONFIG_BIG_ENDIAN),y)
23  STAMP_BUILT:=$(STAMP_BUILT)_big
24endif
25
26define Package/ap51-flash
27  SECTION:=utils
28  CATEGORY:=Utilities
29  TITLE:=A tool for flashing (nearly) all ap51/ap61 based routers
30  URL:=http://dev.open-mesh.com/wiki/ap51-flash-station
31endef
32
33TARGET_EXTRA_CFLAGS:=-DFLASH_FROM_FILE -DNO_LIBPCAP
34ifeq ($(CONFIG_BIG_ENDIAN),y)
35        TARGET_EXTRA_CFLAGS:=$(TARGET_EXTRA_CFLAGS) -DUIP_CONF_BYTE_ORDER=1234
36endif
37
38# pass optimization flags
39MAKE_FLAGS += \
40        OFLAGS="$(TARGET_CFLAGS)" \
41        EXTRA_CFLAGS="$(TARGET_EXTRA_CFLAGS)" \
42        REVISION="$(PKG_VERSION)" \
43
44define Package/ap51-flash/install
45        $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin \
46                $(1)/usr/lib/ap51-flash
47        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ap51-flash $(1)/usr/sbin/
48        $(INSTALL_BIN) ./files/ap51-flash.init $(1)/etc/init.d/ap51-flash
49        $(INSTALL_BIN) ./files/ap51-flash.sh $(1)/usr/lib/ap51-flash/ap51-flash.sh
50        $(INSTALL_DATA) ./files/ap51-flash.conf $(1)/etc/config/ap51-flash
51endef
52
53$(eval $(call BuildPackage,ap51-flash))
Note: See TracBrowser for help on using the repository browser.