iopsys-feed/uboot/Makefile
Andreas Gnau 32fbe3288f Update feed [ iopsys ] package [ u-boot-ex400 ]
-------------------------------------------------------------------------------
* 4cd73fe5db ex400: Update bootloader version to new IOWRT 6 format
* b22609213e Revert "ex400: enable network by default"
-------------------------------------------------------------------------------
commit 4cd73fe5db0ebfc1242ca9c85c14d7f0718eaf73
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-12-08 17:27:59 +0100

    ex400: Update bootloader version to new IOWRT 6 format

Base directory -> /
 board/inteno/common/board.c |  4 ++--
 board/inteno/ex400/board.c  | 17 ++++++++++++++++-
 2 files changed, 18 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit b22609213e92496f6cc44028f9b9930becb8a999
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-03-31 13:35:09 +0200

    Revert "ex400: enable network by default"

    This reverts commit 0cd508d8dd077d62baa59a0d74e2e5f24cff8926.

    It turns out that not starting network by default had a reason. See
    fccb9d5ee7 (Prevent ethernet to start up by default., 2017-05-11).

    Quoting the commit message:

    > This is needed as the setup has all port in the same switch
    > so WAN is connected to LAN and dhcp on clients on LAN is getting
    > out to the ISP and stealing ip numbers.

    We do not want to have networking by default with a static IP on the
    WAN-port. In addition, test-scripts would need adaptation if the networking
    is not to started by default, which is not worth it for an old platform like
    this.

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 board/inteno/common/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2022-03-31 18:35:32 +02:00

137 lines
3.2 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_SOURCE_PROTO:=git
ifdef CONFIG_TARGET_iopsys_econet
PKG_SOURCE_URL:=https://dev.iopsys.eu/ensemble/u-boot.git
PKG_SOURCE_VERSION:=1b320f0656bfc8504fa4f771dd77d8e403ed00e0
else
PKG_SOURCE_URL:=https://dev.iopsys.eu/fork/uboot.git
PKG_SOURCE_VERSION:=4cd73fe5db0ebfc1242ca9c85c14d7f0718eaf73
endif
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_MIRROR_HASH:=skip
PKG_LICENSE:=GPL-2.0-or-later
# u-boot for mips_intel do not build in parallel.
#PKG_BUILD_PARALLEL:=1
# we currently do not use OpenWRT u_boot make files
#include $(INCLUDE_DIR)/u-boot.mk
include $(INCLUDE_DIR)/package.mk
# prevent openwrt source date to be used as build date by u-boot
unexport SOURCE_DATE_EPOCH
define uboot/Default
TITLE:=
CONFIG:=
IMAGE:=
endef
UBOOT_IMG:=uboot.img
define uboot/ex400
TITLE:=U-Boot for the ex400
DEPENDS:=@TARGET_iopsys_ramips
PKG_RELEASE:=7
endef
define uboot/en7562
TITLE:=U-Boot for the en7562
CONFIG:=econet-en7562-ram
DEPENDS:=@TARGET_iopsys_econet
UBOOT_IMG:=u-boot-nand.bin
endef
UBOOTS := \
ex400 \
en7562
define Package/uboot/template
define Package/uboot-$(1)
SECTION:=boot
CATEGORY:=Boot Loaders
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)
UBOOT_IOPSYS_VERSION:=$(PKG_RELEASE)
endif
define Build/Configure
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
$(UBOOT_CONFIG)_config
$(SED) "s,CONFIG_INTENO_MAJOR=\"0\",CONFIG_INTENO_MAJOR=\"$(UBOOT_IOPSYS_VERSION)\"," $(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
# don't install /etc/init.d/uboot for intel-mips as it's not needed
define Package/uboot/install/default
$(INSTALL_DIR) $$(1)/lib/upgrade
$(CP) ./files/uboot-upgrade $$(1)/lib/upgrade/
$(INSTALL_DIR) $(BIN_DIR)/$(TARGET)
$(CP) \
$(PKG_BUILD_DIR)/$(UBOOT_IMG) \
$(BIN_DIR)/$(TARGET)/uboot.img
$(CP) \
$(PKG_BUILD_DIR)/$(UBOOT_IMG) \
$(wildcard $(BUILD_DIR)/linux-$(BOARD)*)/uboot.img
$(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))) \
)