I've used some variant of this, many times:
https://www.seventransistorlabs.com/Images/Flashlight2_Schematic.pngIC2 is a astable multivibrator and PWM comparator. Q4A isn't necessary, but it improves linearity. If not needed, it can be replaced with a pull-up resistor.
Note that you don't want to skip the rest of the circuit: IC3B compares the inductor current to the current setpoint, providing a first line of defense against destruction of transistors or other components. The output current simply cannot be anything other than what it can be set to, within a controlled range. IC3A then controls that current, in order to regulate the output value (in this case, a combination of output current and voltage for driving LEDs, but just voltage would be fine for a power supply or amplifier).
The chained error amplifier topology also avoids putting the double-pole output filter inside a single loop. Instead, the inductor is in the first loop, and the capacitor and load in the second. This is much easier to compensate, and gives much nicer waveforms.
Tim