# -*-makefile-*- # # Copyright (C) 2012 by Andreas Bießmann # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # PACKAGES-$(PTXCONF_U_BOOT_TOOLS) += u-boot-tools # # Paths and names # U_BOOT_TOOLS_VERSION := 2016.05 U_BOOT_TOOLS_MD5 := 3a8613d753dfa707c937991a35404510 U_BOOT_TOOLS := u-boot-$(U_BOOT_TOOLS_VERSION) U_BOOT_TOOLS_SUFFIX := tar.bz2 U_BOOT_TOOLS_URL := ftp://ftp.denx.de/pub/u-boot/$(U_BOOT_TOOLS).$(U_BOOT_TOOLS_SUFFIX) U_BOOT_TOOLS_SOURCE := $(SRCDIR)/$(U_BOOT_TOOLS).$(U_BOOT_TOOLS_SUFFIX) U_BOOT_TOOLS_DIR := $(BUILDDIR)/u-boot-tools-$(U_BOOT_TOOLS_VERSION) U_BOOT_TOOLS_LICENSE := GPL-2.0 # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- U_BOOT_TOOLS_CONF_TOOL := NO # just pick sandbox as a dummy target config U_BOOT_TOOLS_MAKE_OPT := \ CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) \ sandbox_config \ tools/env/ # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/u-boot-tools.install: @$(call targetinfo) install -D $(U_BOOT_TOOLS_DIR)/tools/env/fw_printenv \ $(U_BOOT_TOOLS_PKGDIR)/usr/sbin/fw_printenv @$(call touch) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/u-boot-tools.targetinstall: @$(call targetinfo) @$(call install_init, u-boot-tools) @$(call install_fixup, u-boot-tools,PRIORITY,optional) @$(call install_fixup, u-boot-tools,SECTION,base) @$(call install_fixup, u-boot-tools,AUTHOR,\ "Andreas Bießmann ") @$(call install_fixup, u-boot-tools,DESCRIPTION,missing) @$(call install_copy, u-boot-tools, 0, 0, 0755, -, /usr/sbin/fw_printenv) @$(call install_link, u-boot-tools, fw_printenv, /usr/sbin/fw_setenv) @$(call install_alternative, u-boot-tools, 0, 0, 0644, /etc/fw_env.config) @$(call install_finish, u-boot-tools) @$(call touch) # vim: syntax=make