Browse Source

Force www.zip filenames to be UTF-8; add __packed to compiler.h

For web purposes we want filenames to be UTF-8, so forcibly encode
them that way.
H. Peter Anvin 2 years ago
parent
commit
4bcc48b431
5 changed files with 2 additions and 1 deletions
  1. 1 1
      esp32/Makefile
  2. 1 0
      esp32/max80/compiler.h
  3. BIN
      esp32/output/max80.ino.bin
  4. BIN
      fpga/output/v1.fw
  5. BIN
      fpga/output/v2.fw

+ 1 - 1
esp32/Makefile

@@ -41,7 +41,7 @@ zip: zipexclude
 	fi
 	cd www && \
 		TZ=GMT0 \
-		$(ZIP) -9DrpX -FS ../zip/www.zip . -x@../zipexclude
+		$(ZIP) -9DrpX -UN=UTF8 -FS ../zip/www.zip . -x@../zipexclude
 
 # Ugly hack but needed to avoid unnecessary rebuilds
 www.zip: zip

+ 1 - 0
esp32/max80/compiler.h

@@ -95,6 +95,7 @@ typedef unsigned __int128 size2_t;
 #define __nonnull_arg(...)	__attribute__((__nonnull__(__VA_ARGS__)))
 #define __no_return		void __attribute__((__noreturn__))
 #define __nonnull_ret		__attribute__((__returns_nonnull__))
+#define __packed		__attribute__((__packed__))
 
 #define __safe_alloc(...)	__nonnull_ret __alloc_size(__VA_ARGS__)
 

BIN
esp32/output/max80.ino.bin


BIN
fpga/output/v1.fw


BIN
fpga/output/v2.fw