2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=https
://downloads.openwrt.org
/sources
/
17 PKG_HASH
:=1d2bc04c2c6bb3d2d6c1916b6dc559cda2b1ecb045d7801fd49af6af4234abeb
20 include $(INCLUDE_DIR
)/package.mk
22 export GCC_HONOUR_COPTS
=s
26 CATEGORY
:=Boot Loaders
27 DEPENDS
:=@TARGET_ixp4xx
29 TITLE
:=Boot loader for NSLU2
, FSG3
, NAS100D and others
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 $(TARGET_CONFIGURE_OPTS
) \
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/apex.bin
$(PKG_BUILD_DIR
)/out
/apex-
$(2).bin
45 $(INSTALL_DIR
) $(PKG_BUILD_DIR
)/out
46 $(call build_apex
,slugos-nslu2-armeb
,nslu2-armeb
)
47 $(call build_apex
,slugos-nslu2-16mb-armeb
,nslu2-16mb-armeb
)
48 $(call build_apex
,slugos-fsg3-armeb
,fsg3-armeb
)
49 $(call build_apex
,slugos-nas100d-armeb
,nas100d-armeb
)
52 define Package
/apex
/install
53 $(INSTALL_DIR
) $(STAGING_DIR
)/apex
54 $(CP
) $(PKG_BUILD_DIR
)/out
/*.bin
$(1)/
57 define Build
/InstallDev
58 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)
59 $(CP
) $(PKG_BUILD_DIR
)/out
/*.bin
$(STAGING_DIR_IMAGE
)/
62 $(eval
$(call BuildPackage
,apex
))