![](/img/trans.png)
[英]How to generate one large dependency map for the whole project that builds with makefiles?
[英]How to change the openwrt Makefiles in order to generate only one image
我想破解的OpenWrt Makefile文件,使其一后只產生一個形象make world
(后make world
許多圖像在產生bin
目錄構建其慢),可以在任何一個給我暗示要做到這一點,我的意思是其中的Makefile正是我必須做出改變
編輯
在包含目錄中,我找到了一個文件image.mk
,在這里,有一個名為BuildImage
函數,我對該指令進行了注釋: $(foreach device,$(TARGET_DEVICES),$(call Device,$(device)))
在我看來,負責生成圖像的人之一。 不幸的是,所有圖像都是在make world
之后生成的,為什么有些解釋?
首先獲得目標板
grep CONFIG_TARGET_BOARD .config
編輯放置在路徑下面的目標makefile
<root>/target/linux/<target_board>/image/Makefile
然后編譯構建。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.