| 
														
															@@ -12,6 +12,16 @@ define Build/linksys-ixp425-image 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	mv [email protected] $@ 
														 | 
														
														 | 
														
															 	mv [email protected] $@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 endef 
														 | 
														
														 | 
														
															 endef 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+define Build/freecom-image 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	mkdir -p [email protected] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	# Add kernel 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	cp $@ [email protected]/zImage 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	cd [email protected] && tar -c -j -f [email protected] --numeric-owner --owner=0 --group=0 * 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	rm -rf [email protected] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	encode_crc [email protected] $@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	rm -f [email protected] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+endef 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 # Build sysupgrade image 
														 | 
														
														 | 
														
															 # Build sysupgrade image 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 define BuildFirmware/Generic 
														 | 
														
														 | 
														
															 define BuildFirmware/Generic 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	dd if=$(KDIR)/zImage of=$(KDIR)/zImage.pad bs=64k conv=sync; \ 
														 | 
														
														 | 
														
															 	dd if=$(KDIR)/zImage of=$(KDIR)/zImage.pad bs=64k conv=sync; \ 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -36,6 +46,20 @@ define Device/Default 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	BLOCKSIZE := 128k 
														 | 
														
														 | 
														
															 	BLOCKSIZE := 128k 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 endef 
														 | 
														
														 | 
														
															 endef 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+define Device/freecom_fsg_3 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	DEVICE_VENDOR := Freecom 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	DEVICE_MODEL := FSG-3 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	DEVICE_PACKAGES := ixp4xx-microcode-ethernet kmod-rtc-isl1208 kmod-ath5k wpad-basic-mbedtls 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	# Only 4 MB of Flash so not building by default 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	DEFAULT := n 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	DEVICE_DTS := intel-ixp42x-freecom-fsg-3 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	KERNEL := kernel-bin | append-dtb 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	IMAGES := factory.bin 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	# This has to boot from harddisk so just append the kernel 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	IMAGE/factory.bin := append-kernel | freecom-image 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+endef 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+TARGET_DEVICES += freecom_fsg_3 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 define Device/gateworks_avila 
														 | 
														
														 | 
														
															 define Device/gateworks_avila 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	DEVICE_VENDOR := Gateworks 
														 | 
														
														 | 
														
															 	DEVICE_VENDOR := Gateworks 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	DEVICE_MODEL := Avila GW2348-4 
														 | 
														
														 | 
														
															 	DEVICE_MODEL := Avila GW2348-4 
														 |