--- /dev/null
+###############################################################################
+# Please modify this file if you want to configure your own application.
+# You can uncommon and/or change the following Kconfig elements.
+###############################################################################
+
+
+if ROOTFS_COMPONENT_APPS_NAME_CANUTILS
+ comment "No additional options for CANUTILS"
+
+# config APPS_CANUTILS_OPTION0
+# bool "option0"
+# help
+# Help text
+endif
--- /dev/null
+ifndef PETALINUX
+$(error "Error: PETALINUX environment variable not set. Change to the root of your PetaLinux install, and source the settings.sh file")
+endif
+
+include apps.common.mk
+
+.PHONY: all build install clean
+all: build install
+
+DIR := zynq_canutils
+ARCHIVE := $(DIR).rar
+URL := http://www.wiki.xilinx.com/file/view/zynq_canutils.rar/498279002/$(ARCHIVE)
+
+$(ARCHIVE):
+ wget -c $(URL)
+.unpacked: $(ARCHIVE)
+ unrar x $(ARCHIVE)
+ touch .unpacked
+.installed: .unpacked
+ cd $(DIR) && tar -x --strip-components=1 -f canutils_install.tar.gz -C $(STAGEDIR)/usr
+ cd $(DIR) && tar -x --strip-components=1 -f libskt_install.tar.gz -C $(STAGEDIR)/usr
+
+
+build: .installed
+
+L := libsocketcan.so
+install: build
+ for f in candump canecho cansequence; do $(TARGETINST) -d $(STAGEDIR)/usr/bin/$$f /usr/bin/$$f; done
+ for f in canconfig; do $(TARGETINST) -d $(STAGEDIR)/usr/sbin/$$f /usr/sbin/$$f; done
+ for f in $(L).2.2.0; do $(TARGETINST) -d $(STAGEDIR)/usr/lib/$$f /usr/lib/$$f; done
+ for f in $(L) $(L).2; do $(TARGETINST) -s $(L).2.2.0 /usr/lib/$$f; done
+
+clean:
+ -rm -Rf $(DIR) .unpacked .installed
+
+help:
+ @echo ""
+ @echo "Quick reference for various supported build targets for $(INSTANCE)."
+ @echo "----------------------------------------------------"
+ @echo " clean clean out build objects"
+ @echo " all build $(INSTANCE) and install to rootfs host copy"
+ @echo " build build subsystem"
+ @echo " install install built objects to rootfs host copy"
#
# dropbear
#
-# CONFIG_ROOTFS_PACKAGES_DROPBEAR is not set
-# CONFIG_ROOTFS_PACKAGES_DROPBEAR_OPENSSH_SFTP_SERVER is not set
+CONFIG_ROOTFS_PACKAGES_DROPBEAR=y
+CONFIG_ROOTFS_PACKAGES_DROPBEAR_OPENSSH_SFTP_SERVER=y
#
# ethtool
#
# openssh
#
-# CONFIG_ROOTFS_PACKAGES_OPENSSH_SFTP_SERVER is not set
+CONFIG_ROOTFS_PACKAGES_OPENSSH_SFTP_SERVER=y
#
# portmap
#
# ncurses
#
-# CONFIG_ROOTFS_PACKAGES_LIBFORM5 is not set
+CONFIG_ROOTFS_PACKAGES_LIBFORM5=y
# CONFIG_ROOTFS_PACKAGES_LIBFORMW5 is not set
-# CONFIG_ROOTFS_PACKAGES_LIBMENU5 is not set
+CONFIG_ROOTFS_PACKAGES_LIBMENU5=y
# CONFIG_ROOTFS_PACKAGES_LIBMENUW5 is not set
-# CONFIG_ROOTFS_PACKAGES_LIBNCURSES5 is not set
+CONFIG_ROOTFS_PACKAGES_LIBNCURSES5=y
CONFIG_ROOTFS_PACKAGES_LIBNCURSESW5=y
# CONFIG_ROOTFS_PACKAGES_LIBPANEL5 is not set
# CONFIG_ROOTFS_PACKAGES_LIBPANELW5 is not set
-# CONFIG_ROOTFS_PACKAGES_LIBTIC5 is not set
+CONFIG_ROOTFS_PACKAGES_LIBTIC5=y
# CONFIG_ROOTFS_PACKAGES_LIBTICW5 is not set
CONFIG_ROOTFS_PACKAGES_LIBTINFO5=y
-# CONFIG_ROOTFS_PACKAGES_NCURSES is not set
-# CONFIG_ROOTFS_PACKAGES_NCURSES_TERMINFO is not set
-# CONFIG_ROOTFS_PACKAGES_NCURSES_TERMINFO_BASE is not set
-# CONFIG_ROOTFS_PACKAGES_NCURSES_TOOLS is not set
+CONFIG_ROOTFS_PACKAGES_NCURSES=y
+CONFIG_ROOTFS_PACKAGES_NCURSES_TERMINFO=y
+CONFIG_ROOTFS_PACKAGES_NCURSES_TERMINFO_BASE=y
+CONFIG_ROOTFS_PACKAGES_NCURSES_TOOLS=y
#
# popt
#
# zlib
#
-# CONFIG_ROOTFS_PACKAGES_LIBZ1 is not set
+CONFIG_ROOTFS_PACKAGES_LIBZ1=y
#
# libs/network
#
# No additional options for CANHWTSTAMP
#
+CONFIG_ROOTFS_COMPONENT_APPS_NAME_CANUTILS=y
+
+#
+# No additional options for CANUTILS
+#
CONFIG_ROOTFS_COMPONENT_APPS_NAME_FWUPGRADE=y
# CONFIG_ROOTFS_COMPONENT_APPS_NAME_GPIO__DEMO is not set
# CONFIG_ROOTFS_COMPONENT_APPS_NAME_LATENCYSTAT is not set