mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 07:41:36 +08:00
Resync new repository with old repo r5166
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5153 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_GENROMFS
|
||||
bool "Build genromfs"
|
||||
default n if !BR2_PACKAGE_NXFLAT
|
||||
default y if BR2_PACKAGE_NXFLAT
|
||||
help
|
||||
genromfs is a tools that will convert a directory on the host
|
||||
machine to a FLASH-able ROMFS image file. genromfs support
|
||||
is normally required with NXFLAT.
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,38 @@
|
||||
######################################################################
|
||||
#
|
||||
# genromfs
|
||||
#
|
||||
######################################################################
|
||||
|
||||
GENROMFS_VERSION:=0.5.2
|
||||
GENROMFS_SOURCE:=genromfs-$(GENROMFS_VERSION).tar.gz
|
||||
GENROMFS_BUILD:=$(TOOL_BUILD_DIR)/genromfs-$(GENROMFS_VERSION)
|
||||
|
||||
$(GENROMFS_BUILD)/.unpacked : $(GENROMFS_TARBALL)
|
||||
$(ZCAT) toolchain/genromfs/$(GENROMFS_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
||||
toolchain/patch-kernel.sh $(GENROMFS_BUILD) toolchain/genromfs \*.patch
|
||||
touch $@
|
||||
|
||||
$(GENROMFS_BUILD)/.compiled : $(GENROMFS_BUILD)/.unpacked
|
||||
$(MAKE) -C $(GENROMFS_BUILD)
|
||||
touch $@
|
||||
|
||||
$(STAGING_DIR)/bin/genromfs: $(GENROMFS_BUILD)/.compiled
|
||||
install -m 755 $(GENROMFS_BUILD)/genromfs $(STAGING_DIR)/bin/genromfs
|
||||
|
||||
genromfs: $(STAGING_DIR)/bin/genromfs
|
||||
|
||||
genromfs-source:
|
||||
|
||||
genromfs-clean:
|
||||
rm -f $(STAGING_DIR)/bin/genromfs
|
||||
(if [ -d $(GENROMFS_BUILD) ]; then $(MAKE) -C $(GENROMFS_BUILD) clean; fi)
|
||||
rm -f $(GENROMFS_BUILD)/.compiled
|
||||
|
||||
genromfs-dirclean:
|
||||
rm -rf $(GENROMFS_BUILD)
|
||||
|
||||
ifeq ($(strip $(BR2_PACKAGE_GENROMFS)),y)
|
||||
TARGETS+=genromfs
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user