common-netgear.mk 697 B

123456789101112131415161718192021222324
  1. DEVICE_VARS += NETGEAR_KERNEL_MAGIC NETGEAR_BOARD_ID NETGEAR_HW_ID
  2. define Build/netgear-squashfs
  3. rm -rf $@.fs $@.squashfs
  4. mkdir -p $@.fs/image
  5. cp $@ $@.fs/image/uImage
  6. $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \
  7. $@.fs $@.squashfs -be \
  8. -noappend -root-owned -b 65536 \
  9. $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
  10. dd if=/dev/zero bs=1k count=1 >> $@.squashfs
  11. mkimage \
  12. -A mips -O linux -T filesystem -C none \
  13. -M $(NETGEAR_KERNEL_MAGIC) \
  14. -a 0xbf070000 -e 0xbf070000 \
  15. -n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \
  16. -d $@.squashfs $@
  17. rm -rf $@.squashfs $@.fs
  18. endef
  19. define Build/netgear-uImage
  20. $(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC))
  21. endef