TARGET = $(KERNEL) $(INITRD) n2100 # This has to be empty so the generic kernel/ramdisk will be put in the right directory EXTRANAME = MANIFEST-INITRD = "initrd" MANIFEST-KERNEL = "kernel image to netboot" n2100: mkdir -p $(SOME_DEST) mkdir -p $(TEMP)/upgrade install -m 755 util/arm/thecus/up.sh $(TEMP)/upgrade/ cp $(TEMP_INITRD) $(TEMP)/upgrade/initrd # Set machine id 1101 (0x044d) devio > $(TEMP)/upgrade/vmlinuz 'wl 0xe3a01c04,4' 'wl 0xe381104d,4' cat $(TEMP_KERNEL) >> $(TEMP)/upgrade/vmlinuz echo 9.9.9 > $(TEMP)/upgrade/version (cd $(TEMP) && tar -cpzf n2100.tar.gz upgrade) util/arm/thecus/pad $(TEMP)/n2100.tar.gz openssl enc -e -des -in $(TEMP)/n2100.tar.gz -out $(SOME_DEST)/n2100.bin -K 7A9816A4C275D557 -iv 0 -nosalt -nopad update-manifest $(SOME_DEST)/n2100.bin "Firmware image for Thecus N2100"