搜尋此網誌

OpenWRT build order change how to

 
          For a openwrt user/development, the build sequence(order) is very important, here i will show you how to change the build order without change your package name :

     First open your package's Makefile , and quicky find the setion:

####################################
define Package/build_order_test_package

endef
#####################################

     please add DEPENDS:= key word.
then decide which should build before your package build

     for example , i want librt build before my build_order_test_package build .

define Package/build_order_test_package
  DEPENDS:=  librt 
endef
         Ok ,after finished the modification of the Makefile.
  please do make menuconfig again .

           make menuconfig ARCH=xxx V=s

      Now just type

              make V=s 

         and  check the build log now ,
     you'll  find the librt will  build before your package been build.