diff --git a/.gitmodules b/.gitmodules index 5dddd18..3f6e5fb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "examples/posix_fs/fs-test"] path = examples/posix_fs/fs-test url = https://github.com/sheinz/fs-test +[submodule "extras/http-parser/http-parser"] + path = extras/http-parser/http-parser + url = https://github.com/nodejs/http-parser diff --git a/extras/http-parser/component.mk b/extras/http-parser/component.mk new file mode 100644 index 0000000..78d721d --- /dev/null +++ b/extras/http-parser/component.mk @@ -0,0 +1,11 @@ +# Component makefile for extras/http-parser + +# Include it as 'http-parser/http_parser.h' +INC_DIRS += $(http-parser_ROOT)http-parser + +# args for passing into compile rule generation +http-parser_INC_DIR = +http-parser_SRC_DIR = $(http-parser_ROOT)http-parser +http-parser_SRC_FILES = $(http-parser_SRC_DIR)/http_parser.c + +$(eval $(call component_compile_rules,http-parser)) diff --git a/extras/http-parser/http-parser b/extras/http-parser/http-parser new file mode 160000 index 0000000..335850f --- /dev/null +++ b/extras/http-parser/http-parser @@ -0,0 +1 @@ +Subproject commit 335850f6b868d3411968cbf5a4d59fe619dee36f