[PATCH v3] build: create $(PKG_SYMVERS_DIR) if non-existent

Sebastian Kemper sebastian_ml at gmx.net
Wed Nov 18 16:52:32 EST 2020


On Wed, Nov 18, 2020 at 10:28:12PM +0100, Sebastian Kemper wrote:
> diff --git a/include/kernel.mk b/include/kernel.mk
> index 1ae9c6be29..d48b68f515 100644
> --- a/include/kernel.mk
> +++ b/include/kernel.mk
> @@ -149,6 +149,7 @@ define collect_module_symvers
>  			grep -F $$$$realdir $(PKG_BUILD_DIR)/$$$$subdir/Module.symvers >> $(PKG_BUILD_DIR)/Module.symvers.tmp; \
>  	done; \
>  	sort -u $(PKG_BUILD_DIR)/Module.symvers.tmp > $(PKG_BUILD_DIR)/Module.symvers; \
> +	mkdir -p $(PKG_SYMVERS_DIR)
>  	mv $(PKG_BUILD_DIR)/Module.symvers $(PKG_SYMVERS_DIR)/$(PKG_NAME).symvers
>  endef

Whoopsie, I just realized that this is all sort of linked together with
backslashes. I don't think this is needed except for the for loop. But
I'll send a v5 that keeps this fashion as is.



More information about the openwrt-devel mailing list