--- /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_MC
+ comment "No additional options for MC"
+
+# config APPS_MC_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
+
+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"
#
# libffi
#
-# CONFIG_ROOTFS_PACKAGES_LIBFFI6 is not set
+CONFIG_ROOTFS_PACKAGES_LIBFFI6=y
#
# m4
# 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
# 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
#
#
# 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
# 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
#
# No additional options for LATESTER
#
+CONFIG_ROOTFS_COMPONENT_APPS_NAME_MC=y
+
+#
+# No additional options for MC
+#
CONFIG_ROOTFS_COMPONENT_APPS_NAME_PEEKPOKE=y
#