mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-02-16 04:49:13 +01:00
-------------------------------------------------------------------------------
* 064c9c3 Shorter timeout after upgrading rescue image
* 008997a Add -f option to rescue command.
* a9619c7 Rescue mode has to reset boot counters.
-------------------------------------------------------------------------------
commit 064c9c30ff159c9bf3fa695baddd54279cd0f062
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-06-19 17:16:48 +0200
Shorter timeout after upgrading rescue image
Base directory -> /
board/inteno/ex400/httpd.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 008997a8a559978870849dc82fc6ced4c2eaaa59
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-06-19 15:09:22 +0200
Add -f option to rescue command.
This allows it to run without having to push the reset button.
Base directory -> /
board/inteno/ex400/board.c | 53 +++++++++++++++++++++++++++++++++++-----------
1 file changed, 41 insertions(+), 12 deletions(-)
-------------------------------------------------------------------------------
commit a9619c7110586089dc3f9b72391e467e1f40d309
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-06-19 14:58:24 +0200
Rescue mode has to reset boot counters.
Base directory -> /
board/inteno/ex400/httpd.c | 4 ++++
1 file changed, 4 insertions(+)
-------------------------------------------------------------------------------
106 lines
2.4 KiB
Makefile
106 lines
2.4 KiB
Makefile
#
|
|
# Copyright (C) 2013-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=u-boot
|
|
PKG_VERSION:=2016.08
|
|
PKG_RELEASE:=3
|
|
PKG_SOURCE_URL:=http://public.inteno.se:/uboot
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=064c9c30ff159c9bf3fa695baddd54279cd0f062
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define uboot/Default
|
|
TITLE:=
|
|
CONFIG:=
|
|
IMAGE:=
|
|
endef
|
|
|
|
define uboot/ex400
|
|
TITLE:=U-Boot for the ex400
|
|
endef
|
|
|
|
UBOOTS := \
|
|
ex400
|
|
|
|
define Package/uboot/template
|
|
define Package/uboot-$(1)
|
|
SECTION:=boot
|
|
CATEGORY:=Boot Loaders
|
|
DEPENDS:=@TARGET_iopsys_ramips
|
|
TITLE:=$(2)
|
|
URL:=http://www.denx.de/wiki/U-Boot
|
|
VARIANT:=$(1)
|
|
endef
|
|
endef
|
|
|
|
define BuildUBootPackage
|
|
$(eval $(uboot/Default))
|
|
$(eval $(uboot/$(1)))
|
|
$(call Package/uboot/template,$(1),$(TITLE))
|
|
endef
|
|
|
|
ifdef BUILD_VARIANT
|
|
$(eval $(call uboot/$(BUILD_VARIANT)))
|
|
UBOOT_CONFIG:=$(if $(CONFIG),$(CONFIG),$(BUILD_VARIANT))
|
|
UBOOT_IMAGE:=$(if $(IMAGE),$(IMAGE),openwrt-$(BOARD)-$(BUILD_VARIANT)-u-boot.bin)
|
|
endif
|
|
|
|
define Build/Configure
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
|
$(UBOOT_CONFIG)_config
|
|
|
|
$(SED) "s,CONFIG_INTENO_MAJOR=\"0\",CONFIG_INTENO_MAJOR=\"$(PKG_RELEASE)\"," $(PKG_BUILD_DIR)/.config
|
|
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
|
oldconfig
|
|
endef
|
|
|
|
define Build/Compile
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
|
CROSS_COMPILE=$(TARGET_CROSS)
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
|
CROSS_COMPILE=$(TARGET_CROSS) env
|
|
endef
|
|
|
|
define Package/uboot/install/default
|
|
$(CP) ./files/* $$(1)/
|
|
$(INSTALL_DIR) $(BIN_DIR)/$(TARGET)
|
|
$(INSTALL_DIR) $$(1)/boot
|
|
$(CP) \
|
|
$(PKG_BUILD_DIR)/uboot.img \
|
|
$(BIN_DIR)/$(TARGET)/
|
|
$(CP) \
|
|
$(PKG_BUILD_DIR)/uboot.img \
|
|
$$(1)/boot
|
|
$(INSTALL_DIR) $$(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/env/fw_printenv $$(1)/usr/sbin/
|
|
ln -s /usr/sbin/fw_printenv $$(1)/usr/sbin/fw_setenv
|
|
endef
|
|
|
|
define Package/uboot/install/template
|
|
define Package/uboot-$(1)/install
|
|
$(call Package/uboot/install/default,$(2))
|
|
endef
|
|
endef
|
|
|
|
$(foreach u,$(UBOOTS), \
|
|
$(eval $(call Package/uboot/install/template,$(u),$(u))) \
|
|
)
|
|
|
|
$(foreach u,$(UBOOTS), \
|
|
$(eval $(call BuildUBootPackage,$(u))) \
|
|
$(eval $(call BuildPackage,uboot-$(u))) \
|
|
)
|