2 # Copyright (C) 2009 Jo-Philipp Wich <xm@subsignal.org>
4 # This is free software, licensed under the Apache 2.0 license.
7 include $(TOPDIR)/rules.mk
9 PKG_NAME:=sysupgrade-atheros
12 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14 include $(INCLUDE_DIR)/package.mk
16 define Package/sysupgrade-atheros
20 TITLE:=Experimental sysupgrade support for Atheros SoC and AR71xx target (UBNT RS)
21 DEPENDS:=@TARGET_atheros||@TARGET_ar71xx
24 define Package/sysupgrade-atheros/description
25 This package implements experimental sysupgrade support for Atheros SoC devices
26 like the classic Fonera or the D-Link DIR-300.
27 See https://lists.openwrt.org/pipermail/openwrt-devel/2009-June/004499.html for details.
31 mkdir -p $(PKG_BUILD_DIR)
34 define Build/Configure
40 define Package/sysupgrade-atheros/postinst
42 [ -n "$${IPKG_INSTROOT}" ] || {
43 if [ -f /lib/upgrade/kill-ffwatchd.sh ]; then
44 rm -f /lib/upgrade/kill-ffwatchd.sh
49 define Package/sysupgrade-atheros/install
53 $(eval $(call BuildPackage,sysupgrade-atheros))