5

Bulding 

It is very important so that Makefile is a TAB instead 8 spaces! 

Help for creating patching with packages 

https://openwrt.org/docs/guide-developer/use-patches-with-buildsystem

Rebuild a package 

rm build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/redis* -rf || true
rm build_dir/target-mipsel_24kc_musl-1.1.16/redis* -rf || true
rm feeds/redis* -rf
./scripts/feeds update -a
./scripts/feeds install -a

# once you already updated the all
./scripts/feeds install redis
./scripts/feeds update -a -p redis

make package/feeds/redis/redis/{clean,prepare,compile} package/index V=s

Quick 

rm build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/redis* -rf || true
rm build_dir/target-mipsel_24kc_musl-1.1.16/redis* -rf || true
rm feeds/redis* -rf
./scripts/feeds install redis
./scripts/feeds update -a -p redis
make package/feeds/redis/redis/{clean,prepare,compile} package/index V=s

To create the patch 

make package/feeds/redis/redis/{clean,prepare} V=s QUILT=1

# either
cd /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/redis-4.0.2/

# or
cd /build/source/build_dir/target-mipsel_24kc_musl-1.1.16/redis-4.0.2


quilt push -a
quilt new 010-my-context.patch
quilt edit include/my_context.h  
quilt series
quilt diff
quilt refresh

To edit a patch 

make package/feeds/redis/redis/{clean,prepare} V=s QUILT=1

# either
cd /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/redis-4.0.2/

# or
cd /build/source/build_dir/target-mipsel_24kc_musl-1.1.16/redis-4.0.2


quilt series
quilt refresh
quilt push 010-redis.patch
quilt edit ./deps/jemalloc/src/pages.c 
quilt edit src/Makefile 
quilt edit src/atomicvar.h
quilt edit deps/jemalloc/src/background_thread.c 
quilt diff
quilt refresh
openwrt Insomnia
onenoteredis-uiangular-compileramdiskgitlistfreenomopenwrt-insomniadocker-debian-testing-mongodb-stableopenwrt-rediscorifeus-app-web-pagesaes-foldercorifeuscorifeus-web-materialhtml-pdfredis-ui-servergrunt-p3x-expresssystemd-managercorifeus-app-server-patrikx3corifeus-buildercorifeus-servercorifeus-builder-angularcorifeus-utilscorifeus-webfortune-cookieplay-ai-uiredis-ui-materialtools
  Bugs are evident™ - MATRIX
OK