How to change the openwrt Makefiles in order to generate only one image

524 Views Asked by At

I want hack the openwrt Makefiles so that it generates only one image after a make world(after make world many images are generated in the bin directory which slower the build), could any one give me hint to do that, i mean in which Makefile exactly i have to make my changes

EDIT

In the include directory i find a file image.mk, here, there is a function called BuildImage within this function i commented the instruction: $(foreach device,$(TARGET_DEVICES),$(call Device,$(device))) which seems to me the one responsible on the generation of the images. Unfortunately all the images are generated after make world, any explication why ?

1

There are 1 best solutions below

2
On

First get the target board

grep CONFIG_TARGET_BOARD .config

Edit target makefile placed in below path

<root>/target/linux/<target_board>/image/Makefile

Then compile the build.