2 # Copyright (C) 2013-2014 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
11 PKG_SOURCE_URL
:=https
://github.com
/chunkeey
/FritzBox-4040-UBOOT
13 PKG_SOURCE_VERSION
:=6946ebbaf7b12a4a092d763c8f0c87a25984f103
14 PKG_SOURCE_DATE
:=2017-01-29
15 PKG_MIRROR_HASH
:=5c2394f51a083dca2a2bf9cb36fa717f252112fc792c9eeae64f6383ad08987b
19 include $(INCLUDE_DIR
)/u-boot.mk
20 include $(INCLUDE_DIR
)/package.mk
24 UBOOT_IMAGE
:=uboot-fritz4040.bin
27 define U-Boot
/fritz4040
31 UBOOT_CONFIGURE_VARS
+= USE_PRIVATE_LIBGCC
=yes
32 UBOOT_MAKE_FLAGS
+= USE_PRIVATE_LIBGCC
=yes
35 define Build
/Configure
36 $(Build
/Configure
/U-Boot
)
37 $(HOSTCC
) -o
$(PKG_BUILD_DIR
)/fritz
/lzma2eva
$(PKG_BUILD_DIR
)/fritz
/src
/lzma2eva.c
-lz
38 $(HOSTCC
) -o
$(PKG_BUILD_DIR
)/fritz
/tichksum
$(PKG_BUILD_DIR
)/fritz
/src
/tichksum.c
39 ln
-sf
$(STAGING_DIR_HOST
)/bin
/lzma
$(PKG_BUILD_DIR
)/fritz
43 $(Build
/Compile
/U-Boot
)
44 (cd
$(PKG_BUILD_DIR
); .
/fritz
/fritzcreator.sh
;)
47 define Package
/u-boot
/install
48 $(Package
/u-boot
/install/default
)
49 $(INSTALL_BIN
) .
/files
/upload-to-f4040.sh
$(1)/
52 UBOOT_TARGETS
:= fritz4040
54 $(eval
$(call BuildPackage
/U-Boot
))