8

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-redis.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-compilegitlistGithub gitlistramdiskGithub ramdiskfreenomGithub freenomopenwrt-insomniaGithub openwrt-insomniadocker-debian-testing-mongodb-stableGithub docker-debian-testing-mongodb-stableredis-ui-serverGithub redis-ui-servercorifeus-app-web-pagesGithub corifeus-app-web-pagesverdaccio-cliGithub verdaccio-clicorifeusGithub corifeuscorifeus-web-materialGithub corifeus-web-materialgrunt-p3x-expressGithub grunt-p3x-expresshtml-pdfGithub html-pdfsystemd-managerGithub systemd-managercorifeus-app-server-patrikx3Github corifeus-app-server-patrikx3corifeus-builderGithub corifeus-buildercorifeus-builder-angularGithub corifeus-builder-angularcorifeus-serverGithub corifeus-servercorifeus-utilsGithub corifeus-utilscorifeus-webGithub corifeus-webfortune-cookieGithub fortune-cookieredis-ui-materialGithub redis-ui-materialtoolsGithub tools
  Bugs are evident™ - MATRIX
OK