]> rtime.felk.cvut.cz Git - fpga/zynq/canbench-sw.git/commitdiff
petalinux: added Midnight Commander
authorMartin Jerabek <jerabma7@fel.cvut.cz>
Tue, 3 May 2016 21:11:04 +0000 (23:11 +0200)
committerMartin Jerabek <jerabma7@fel.cvut.cz>
Tue, 3 May 2016 21:11:04 +0000 (23:11 +0200)
petalinux/components/apps/mc/Kconfig [new file with mode: 0644]
petalinux/components/apps/mc/Makefile [new file with mode: 0644]
petalinux/subsystems/linux/configs/rootfs/config

diff --git a/petalinux/components/apps/mc/Kconfig b/petalinux/components/apps/mc/Kconfig
new file mode 100644 (file)
index 0000000..fefa7dc
--- /dev/null
@@ -0,0 +1,14 @@
+###############################################################################
+# 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_MC
+       comment "No additional options for MC"
+
+#      config APPS_MC_OPTION0
+#      bool "option0"
+#      help
+#        Help text
+endif
diff --git a/petalinux/components/apps/mc/Makefile b/petalinux/components/apps/mc/Makefile
new file mode 100644 (file)
index 0000000..6191bfb
--- /dev/null
@@ -0,0 +1,60 @@
+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
+
+export PKG_CONFIG_PATH = $(STAGEDIR)/usr/lib/pkgconfig
+export PKG_CONFIG_SYSROOT_DIR = $(STAGEDIR)
+
+.PHONY: all build install clean help
+all: build install
+build: .installed
+
+VER := 4.8.16
+DIR := mc-$(VER)
+ARCHIVE := $(DIR).tar.xz
+URL := http://ftp.midnight-commander.org/$(ARCHIVE)
+
+$(ARCHIVE):
+       wget -c $(URL)
+.unpacked: $(ARCHIVE)
+       tar xf $(ARCHIVE)
+       touch .unpacked
+
+PREFIX := $(shell pwd)/usr
+
+.configured: .unpacked
+       cd $(DIR) && ./configure --host=arm-xilinx-linux-gnueabi \
+               --with-screen=ncurses --disable-vfs-sfs --disable-vfs-sftp \
+               --with-sysroot=$(STAGEDIR) --without-x --without-gpm-mouse
+       touch .configured
+.built .files: .configured
+       cd $(DIR) && $(MAKE) && $(MAKE) install DESTDIR=$(PREFIX)
+       find usr -not -type d >.files
+       cp -R -t $(STAGEDIR)/usr $(PREFIX)/*
+       rm -R $(PREFIX)
+       touch .built
+.installed: .built .files
+       while read f; do \
+               #  if [ -L $$f ]; then TYPE=-s; \
+               #elif [ -d $$f ]; then continue; \
+               #elif [ -f $$f ]; then TYPE=-f; \
+               #fi; \
+               $(TARGETINST) -d $(STAGEDIR)/$$f /$$f; \
+       done <.files
+       touch .installed
+
+install: .installed
+
+clean:
+       rm -rf $(DIR) .unpacked .configured .built .installed .files
+
+help:
+       @echo "$(TARGETINST)"
+       @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"
index b11673d6c94698f81bb9fd21f11be1299189a5e2..836abb7403bd649fe564e4330a0f26e0bd672059 100644 (file)
@@ -129,7 +129,7 @@ CONFIG_ROOTFS_PACKAGES_IPROUTE2=y
 #
 # libffi
 #
-# CONFIG_ROOTFS_PACKAGES_LIBFFI6 is not set
+CONFIG_ROOTFS_PACKAGES_LIBFFI6=y
 
 #
 # m4
@@ -447,7 +447,7 @@ CONFIG_ROOTFS_PACKAGES_STRACE=y
 # glib-2.0
 #
 # CONFIG_ROOTFS_PACKAGES_LIBGLIB_2_0_DBG is not set
-# CONFIG_ROOTFS_PACKAGES_LIBGLIB_2_0_DEV is not set
+CONFIG_ROOTFS_PACKAGES_LIBGLIB_2_0_DEV=y
 
 #
 # gmp
@@ -593,7 +593,7 @@ CONFIG_ROOTFS_PACKAGES_STRACE=y
 # ncurses
 #
 # CONFIG_ROOTFS_PACKAGES_NCURSES_DBG is not set
-# CONFIG_ROOTFS_PACKAGES_NCURSES_DEV is not set
+CONFIG_ROOTFS_PACKAGES_NCURSES_DEV=y
 # CONFIG_ROOTFS_PACKAGES_NCURSES_STATICDEV is not set
 
 #
@@ -1525,10 +1525,10 @@ CONFIG_ROOTFS_PACKAGES_LIBPOPT_DEV=y
 #
 # glib-2.0
 #
-# CONFIG_ROOTFS_PACKAGES_LIBGLIB_2_0_0 is not set
+CONFIG_ROOTFS_PACKAGES_LIBGLIB_2_0_0=y
 # CONFIG_ROOTFS_PACKAGES_LIBGLIB_2_0_BASH_COMPLETION is not set
 # CONFIG_ROOTFS_PACKAGES_LIBGLIB_2_0_CODEGEN is not set
-# CONFIG_ROOTFS_PACKAGES_LIBGLIB_2_0_UTILS is not set
+CONFIG_ROOTFS_PACKAGES_LIBGLIB_2_0_UTILS=y
 
 #
 # libnet
@@ -1560,15 +1560,15 @@ CONFIG_ROOTFS_PACKAGES_LIBPOPT_DEV=y
 # ncurses
 #
 CONFIG_ROOTFS_PACKAGES_LIBFORM5=y
-# CONFIG_ROOTFS_PACKAGES_LIBFORMW5 is not set
+CONFIG_ROOTFS_PACKAGES_LIBFORMW5=y
 CONFIG_ROOTFS_PACKAGES_LIBMENU5=y
-# CONFIG_ROOTFS_PACKAGES_LIBMENUW5 is not set
+CONFIG_ROOTFS_PACKAGES_LIBMENUW5=y
 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_LIBPANEL5=y
+CONFIG_ROOTFS_PACKAGES_LIBPANELW5=y
 CONFIG_ROOTFS_PACKAGES_LIBTIC5=y
-# CONFIG_ROOTFS_PACKAGES_LIBTICW5 is not set
+CONFIG_ROOTFS_PACKAGES_LIBTICW5=y
 CONFIG_ROOTFS_PACKAGES_LIBTINFO5=y
 CONFIG_ROOTFS_PACKAGES_NCURSES=y
 CONFIG_ROOTFS_PACKAGES_NCURSES_TERMINFO=y
@@ -1653,6 +1653,11 @@ CONFIG_ROOTFS_COMPONENT_APPS_NAME_LATESTER=y
 #
 # No additional options for LATESTER
 #
+CONFIG_ROOTFS_COMPONENT_APPS_NAME_MC=y
+
+#
+# No additional options for MC
+#
 CONFIG_ROOTFS_COMPONENT_APPS_NAME_PEEKPOKE=y
 
 #