ath79: move Netgear build code into a common makefile
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
This commit is contained in:
		 Zoltan HERPAI
					Zoltan HERPAI
				
			
				
					committed by
					
						 John Crispin
						John Crispin
					
				
			
			
				
	
			
			
			 John Crispin
						John Crispin
					
				
			
						parent
						
							2b9885571b
						
					
				
				
					commit
					1e0aeb2b55
				
			
							
								
								
									
										22
									
								
								target/linux/ath79/image/common-netgear.mk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								target/linux/ath79/image/common-netgear.mk
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | |||||||
|  | define Build/netgear-squashfs | ||||||
|  | 	rm -rf $@.fs $@.squashfs | ||||||
|  | 	mkdir -p $@.fs/image | ||||||
|  | 	cp $@ $@.fs/image/uImage | ||||||
|  | 	$(STAGING_DIR_HOST)/bin/mksquashfs-lzma  \ | ||||||
|  | 		$@.fs $@.squashfs -be \ | ||||||
|  | 		-noappend -root-owned -b 65536 \ | ||||||
|  | 		$(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH)) | ||||||
|  |  | ||||||
|  | 	dd if=/dev/zero bs=1k count=1 >> $@.squashfs | ||||||
|  | 	mkimage \ | ||||||
|  | 		-A mips -O linux -T filesystem -C none \ | ||||||
|  | 		-M $(NETGEAR_KERNEL_MAGIC) \ | ||||||
|  | 		-a 0xbf070000 -e 0xbf070000 \ | ||||||
|  | 		-n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \ | ||||||
|  | 		-d $@.squashfs $@ | ||||||
|  | 	rm -rf $@.squashfs $@.fs | ||||||
|  | endef | ||||||
|  |  | ||||||
|  | define Build/netgear-uImage | ||||||
|  | 	$(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC)) | ||||||
|  | endef | ||||||
| @@ -1,26 +1,4 @@ | |||||||
| define Build/netgear-squashfs | include ./common-netgear.mk | ||||||
| 	rm -rf $@.fs $@.squashfs |  | ||||||
| 	mkdir -p $@.fs/image |  | ||||||
| 	cp $@ $@.fs/image/uImage |  | ||||||
| 	$(STAGING_DIR_HOST)/bin/mksquashfs-lzma \ |  | ||||||
| 		$@.fs $@.squashfs \ |  | ||||||
| 		-noappend -root-owned -be -b 65536 \ |  | ||||||
| 		$(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH)) |  | ||||||
|  |  | ||||||
| 	dd if=/dev/zero bs=1k count=1 >> $@.squashfs |  | ||||||
| 	mkimage \ |  | ||||||
| 		-A mips -O linux -T filesystem -C none \ |  | ||||||
| 		-M $(NETGEAR_KERNEL_MAGIC) \ |  | ||||||
| 		-a 0xbf070000 -e 0xbf070000 \ |  | ||||||
| 		-n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \ |  | ||||||
| 		-d $@.squashfs $@ |  | ||||||
| 	rm -rf $@.squashfs $@.fs |  | ||||||
| endef |  | ||||||
|  |  | ||||||
| define Build/netgear-uImage |  | ||||||
| 	$(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC)) |  | ||||||
| endef |  | ||||||
|  |  | ||||||
|  |  | ||||||
| define Device/avm_fritz300e | define Device/avm_fritz300e | ||||||
|   ATH_SOC := ar7242 |   ATH_SOC := ar7242 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user