source: freewrt/target/linux/image/jffs2.mk@ a3abab6

freewrt_1_0 freewrt_2_0
Last change on this file since a3abab6 was c04ece1, checked in by Thorsten Glaser <tg@…>, 19 years ago

as discussed with wbx@ some 2-3 weeks ago, change
the BR2_ prefix to FWRT_

tested with a standard build (only the squashfs
image since the jffs2 didn't get built)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@360 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# $FreeWRT$
2
3ifneq ($(FWRT_BIG_ENDIAN),y)
4JFFS2OPTS := --pad --little-endian --squash-uids
5else
6JFFS2OPTS := --pad --big-endian --squash-uids
7endif
8
9jffs2-prepare:
10
11jffs2-compile: prepare-targets
12
13jffs2-clean:
14 rm -f $(KDIR)/root.jffs2*
15
16$(KDIR)/root.jffs2-4MB: install-prepare
17 @rm -rf $(KDIR)/root/jffs
18 $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(KDIR)/root $(MAKE_TRACE)
19
20$(KDIR)/root.jffs2-8MB: install-prepare
21 @rm -rf $(KDIR)/root/jffs
22 $(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(KDIR)/root $(MAKE_TRACE)
23
24ifeq ($(IB),)
25jffs2-install: compile-targets $(BOARD)-compile
26endif
27
28jffs2-install: $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB
29 $(TRACE) target/linux/image/$(BOARD)/install
30 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-4MB"
31 $(TRACE) target/linux/image/$(BOARD)/install
32 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-8MB"
33
34jffs2-install-ib: compile-targets
35 mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
36 $(CP) $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin
37
38prepare-targets: jffs2-prepare
39compile-targets: jffs2-compile
40install-targets: jffs2-install
41install-ib: jffs2-install-ib
42clean-targets: jffs2-clean
43
Note: See TracBrowser for help on using the repository browser.