mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-20 08:40:37 +02:00
ff69288edb
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3905 3c298f89-4303-0410-b956-a3cf2f4a3e73
23 lines
593 B
Makefile
23 lines
593 B
Makefile
ifneq ($(CONFIG_BIG_ENDIAN),y)
|
|
ENDIAN := le
|
|
else
|
|
ENDIAN := be
|
|
endif
|
|
|
|
$(STAGING_DIR)/bin/mksquashfs-lzma:
|
|
$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs compile
|
|
|
|
squashfs-clean: FORCE
|
|
$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs clean
|
|
rm -f $(KDIR)/root.squashfs
|
|
|
|
define Image/mkfs/squashfs
|
|
@mkdir -p $(BUILD_DIR)/root/jffs
|
|
$(STAGING_DIR)/bin/mksquashfs-lzma $(BUILD_DIR)/root $(KDIR)/root.squashfs -nopad -noappend -root-owned -$(ENDIAN)
|
|
$(call Image/Build,squashfs)
|
|
endef
|
|
|
|
FILESYSTEMS += squashfs
|
|
compile-targets: $(STAGING_DIR)/bin/mksquashfs-lzma
|
|
clean-targets: squashfs-clean
|