The file targets/$GLUON_TARGET/config becomes optional, as many targets only used it to set the board and subtarget. Also fix targets without subtarget.
These packages are included by OpenWrt by default on this target and don't need to be specified manually.
Original patch by @MPW1412