Heres an example of the commands i use to make a firmware image
#!/bin/bash
git clone https://git.openwrt.org/openwrt/openwrt.git lede
#copies patches to lede directory, assuming you already have patches directory available.
cp -r patches /path/to/lede
cd lede
./scripts/feeds update -a
./scripts/feeds install -a
#applies patches and moves to appropriate directory
for i in patches/*.patch; do patch -p1 < $i; done
mv ./target/linux/generic/patches-4.9/* ./target/linux/generic/pending-4.9/
rm -rf ./target/linux/generic/patches-4.9
#copies my config.seed file( i have saved) to the lede directory as .config, so when i run make menuconfig in the lede directory, it already has my previous settings.
cp /path/to/config.seed /path/to/lede/.config
Once this is complete just cd into lede and make menuconfig check your configuration settings and save, then make image. make -j1 V=s
this can be made into a shell script just copy and paste it into a .sh file.
Automatic make:
#!/bin/bash
git clone https://git.openwrt.org/openwrt/openwrt.git lede
#copies patches to lede directory, assuming you already have patches directory available.
cp -r patches /path/to/lede
cd lede
./scripts/feeds update -a
./scripts/feeds install -a
#applies patches and moves to appropriate directory
for i in patches/*.patch; do patch -p1 < $i; done
mv ./target/linux/generic/patches-4.9/* ./target/linux/generic/pending-4.9/
rm -rf ./target/linux/generic/patches-4.9
#copies my config.seed file( i have saved) to the lede directory as .config, so when i run make menuconfig in the lede directory, it already has my previous settings.
cp /path/to/config.seed /path/to/lede/.config
make menuconfig
make -j1 V=s
HOPE THAT HELPS!