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
onenoteGithub onenoteredis-uiGithub redis-uiangular-compileGithub angular-compileramdiskGithub ramdiskgitlistGithub gitlistfreenomGithub freenomopenwrt-insomniaGithub openwrt-insomniadocker-debian-testing-mongodb-stableGithub docker-debian-testing-mongodb-stableopenwrt-redisGithub openwrt-redisaes-folderGithub aes-foldercorifeus-app-web-pagesGithub corifeus-app-web-pagescorifeusGithub corifeuscorifeus-web-materialGithub corifeus-web-materialhtml-pdfGithub html-pdfredis-ui-serverGithub redis-ui-serversystemd-managerGithub systemd-managerverdaccio-cliGithub verdaccio-cligrunt-p3x-expressGithub grunt-p3x-expresscorifeus-app-server-patrikx3Github corifeus-app-server-patrikx3corifeus-builder-angularGithub corifeus-builder-angularcorifeus-serverGithub corifeus-servercorifeus-utilsGithub corifeus-utilscorifeus-builderGithub corifeus-builderfortune-cookieGithub fortune-cookiecorifeus-webGithub corifeus-webplay-ai-uiGithub play-ai-uiredis-ui-materialGithub redis-ui-materialtoolsGithub tools
  Bugs are evident™ - MATRIX
OK