From f33adbaae849627c2ee993d34d7119b24788cb71 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 17 Feb 2005 23:18:46 +0000 Subject: [PATCH] new root target! squashfs with lzma compression from Olegs patches SVN-Revision: 252 --- openwrt/target/Config.in | 1 + openwrt/target/squashfs-lzma/Config.in | 5 ++ openwrt/target/squashfs-lzma/Makefile.in | 4 ++ .../kernel-patch/linux-squashfs-lzma.bz2 | Bin 0 -> 5730 bytes .../target/squashfs-lzma/squashfslzmaroot.mk | 50 ++++++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 openwrt/target/squashfs-lzma/Config.in create mode 100644 openwrt/target/squashfs-lzma/Makefile.in create mode 100644 openwrt/target/squashfs-lzma/kernel-patch/linux-squashfs-lzma.bz2 create mode 100644 openwrt/target/squashfs-lzma/squashfslzmaroot.mk diff --git a/openwrt/target/Config.in b/openwrt/target/Config.in index 791741a08f..d2c35761de 100644 --- a/openwrt/target/Config.in +++ b/openwrt/target/Config.in @@ -2,4 +2,5 @@ choice prompt "Target Root Filesystem" source "target/jffs2/Config.in" source "target/squashfs/Config.in" + source "target/squashfs-lzma/Config.in" endchoice diff --git a/openwrt/target/squashfs-lzma/Config.in b/openwrt/target/squashfs-lzma/Config.in new file mode 100644 index 0000000000..cc46d102ad --- /dev/null +++ b/openwrt/target/squashfs-lzma/Config.in @@ -0,0 +1,5 @@ +config BR2_TARGET_ROOTFS_SQUASHFS_LZMA + bool "squashfs-lzma" + help + Build a squashfs-lzma root filesystem + diff --git a/openwrt/target/squashfs-lzma/Makefile.in b/openwrt/target/squashfs-lzma/Makefile.in new file mode 100644 index 0000000000..bb65c6d037 --- /dev/null +++ b/openwrt/target/squashfs-lzma/Makefile.in @@ -0,0 +1,4 @@ +ifeq ($(strip $(BR2_TARGET_ROOTFS_SQUASHFS_LZMA)),y) +TARGETS+=squashfslzmaroot openwrt-image +ROOTFS=squashfslzma +endif diff --git a/openwrt/target/squashfs-lzma/kernel-patch/linux-squashfs-lzma.bz2 b/openwrt/target/squashfs-lzma/kernel-patch/linux-squashfs-lzma.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..8e19292c1e27f2b421bafe990e153c77617e67e7 GIT binary patch literal 5730 zcmV-o7MqNNyn*PKmerqe z?lP!WuwQ+5S&e5geC_Ag$wc$l&uz!B?$NeB_UC8azOez`*pEQHJ-+im0`;POb@bDa z`rK#Gs|igIiHVa&f+jQ*N1_EkN@?lpdQi~vgAf{I0qSJ+0#iiLAb}~A{Y|QDOq!lk z(?SX!)iNHDqfCte0i!{n!6cePQ%^|H&;w6XOieKWXaE4yKmY&;RD{wgw2x3^8%gN{ zPf_Us>NIEy0h*0H5ugA7iAYn?G|8qzN^F}`WSE%MJg25eX{V%Q$UQ-jWMl!Li6R6E zpq`V^nl#8psq7Mu%4r!tRN9B?o~Nh)(U8zRM?SGx1RUUq9{8$tq(E%nq_mP)ae;`r zdApdbS^=RH)m3ry{Y`(vjK$4*^8>;4MGxxwc`KsL?4yn=<28@*$A3-wR~!-tSd&9~ zYYI)gY-X_U#xsPrt-)WLL5*b6wWZ0+){bO5H}&DP7*;FX&3Y?iYjwb;ej53CLDMX6 znkz6Sh6k^M{5$A|DHm70L-=ww?)ccC1O3pTA&jo?>Wic>C+2-fcI z?wFK0Qb?pkLKF^Ck)%BtrDqONT@z@UT1UEtVu{w4eQ|{=fzIY}A0SXcNN6=lF}3XH z;5Ij*B*UXj$(>$0vm#cnIjhzc5xQg3=Bs^I7ZA*>6EDZ%WT zGMb}69S}5_eH*x$EUBf>3y?$j|Gz6=*;;uh58mzVleSsvH=-MB)1uF-$>z~dmpejs zq;8;u%Pi)P=qSh00XKZ zu26PBQve|U=>!89g1UdcK0`B)w_&$o16WdKWSN-<$7|!D_W<>`Ev?}CsWx(a^a!3V z$)}^^FM9u{A1y?gA9gqTJe`$q)Jx-TJpUzRYYZ~kGDZO9NNCfyYDVRp${WJaj3fyf zD6>A89E8^wh*3p(yDl9QcOi%!J4_opgJ~1WPXZ;-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^J$z>EgOo$-W#6E?Pj|;YzWSllbItSE0Pi3nC5fESRD1uDy3>J zZG9~eI!I?=w~H`J3kqU%XXx<742My!#e6nyPpQ&QB; zAWM=jMu>(+iXkMESuqs_EKrjWZdrz)?>yw$pu~v?q1#n)@z6HT->i1V~7-1W2Y~iS9Ko5+~6L z0t*r#5MmJK$xdMN!_DRfijA{yPQVzWf2DIAg&@xJac!W$<7!G1GhLe~+%MC&$7(zZ z7t;kTCTaP|BfN*Z20^fQou#HGvu4sW@Ty=#dH ze6C?S7swVo>IQ^H5QOCneL?}auBc1?B|;TBVwr&4T@Qdcv!kU7B8uAzmQG2k>gpQo U14mODgk%2~az!{$kQ1qNN0gI=4FCWD literal 0 HcmV?d00001 diff --git a/openwrt/target/squashfs-lzma/squashfslzmaroot.mk b/openwrt/target/squashfs-lzma/squashfslzmaroot.mk new file mode 100644 index 0000000000..6f41f93155 --- /dev/null +++ b/openwrt/target/squashfs-lzma/squashfslzmaroot.mk @@ -0,0 +1,50 @@ +############################################################# +# +# squashfs target +# +############################################################# + +SQUASHFSLZMA_DIR=$(BUILD_DIR)/squashfs2.1-r2-lzma +SQUASHFSLZMA_SOURCE=squashfs2.1-r2-lzma.tar.gz +SQUASHFSLZMA_SITE=http://openwrt.openbsd-geek.de + +$(DL_DIR)/$(SQUASHFSLZMA_SOURCE): + $(WGET) -P $(DL_DIR) $(SQUASHFSLZMA_SITE)/$(SQUASHFSLZMA_SOURCE) + +$(SQUASHFSLZMA_DIR)/.unpacked: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE) + zcat $(DL_DIR)/$(SQUASHFSLZMA_SOURCE) | tar -C $(BUILD_DIR) -xvf - + touch $(SQUASHFSLZMA_DIR)/.unpacked + +$(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs: $(SQUASHFSLZMA_DIR)/.unpacked + $(MAKE) -C $(SQUASHFSLZMA_DIR)/lzma/SRC/7zip/Compress/LZMA_Lib + $(MAKE) -C $(SQUASHFSLZMA_DIR)/squashfs-tools mksquashfs-lzma + +squashfslzma: $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs + +squashfslzma-source: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE) + +squashfslzma-clean: + -$(MAKE) -C $(SQUASHFSLZMA_DIR)/squashfs-tools clean + +squashfslzma-dirclean: + rm -rf $(SQUASHFSLZMA_DIR) + + +############################################################# +# +# Build the squashfs root filesystem image +# +############################################################# + +squashfslzmaroot: squashfslzma + @rm -rf $(TARGET_DIR)/usr/man + @rm -rf $(TARGET_DIR)/usr/info + $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma $(TARGET_DIR) $(IMAGE).squashfslzma -noappend -root-owned -le + +squashfslzmaroot-source: squashfslzma-source + +squashfslzmaroot-clean: + -$(MAKE) -C $(SQUASHFSLZMA_DIR) clean + +squashfslzmaroot-dirclean: + rm -rf $(SQUASHFSLZMA_DIR) -- 2.25.1