2 $(error "Error: PETALINUX environment variable not set. Change to the root of your PetaLinux install, and source the settings.sh file")
7 export PKG_CONFIG_PATH = $(STAGEDIR)/usr/lib/pkgconfig
8 export PKG_CONFIG_SYSROOT_DIR = $(STAGEDIR)
10 .PHONY: all build install clean help
16 ARCHIVE := $(DIR).tar.xz
17 URL := http://ftp.midnight-commander.org/$(ARCHIVE)
25 PREFIX := $(shell pwd)/image
27 .configured: .unpacked
28 cd $(DIR) && ./configure --host=arm-xilinx-linux-gnueabi \
29 --with-screen=ncurses --disable-vfs-sfs --disable-vfs-sftp \
30 --with-sysroot=$(STAGEDIR) --without-x --without-gpm-mouse \
31 --prefix=/ --exec-prefix=/usr --includedir=/usr/include --datarootdir=/usr/share
37 cd $(DIR) && $(MAKE) install DESTDIR=$(PREFIX)
38 (cd $(PREFIX) && find . -not -type d) >.files
39 cp -R -t $(STAGEDIR) $(PREFIX)/*
42 $(TARGETINST) -d $(STAGEDIR)/$$f /$$f; \
49 rm -rf $(DIR) .unpacked .configured .built .installed .files
53 @echo "Quick reference for various supported build targets for $(INSTANCE)."
54 @echo "----------------------------------------------------"
55 @echo " clean clean out build objects"
56 @echo " all build $(INSTANCE) and install to rootfs host copy"
57 @echo " build build subsystem"
58 @echo " install install built objects to rootfs host copy"