Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#372 closed (invalid)

svn, Missing Makefiles, possible fix

Reported by: rkozola Owned by: somebody
Keywords: Cc:

Description

forum post: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=146100

I am having issues with certain targets like dropbear, dhcp-forwarder, wol, lzo, openvpn, snmp, etc.

From svn, these files do not have Makefile in their directories. The Makefile uses rules/configs.mk to set the obj-y strings for all included apps and obj-n for those not included. The all target has the obj-y string which would attempt to make each target contained in obj-y. The problem is that not all directories under router have a Makefile. There are targets set up though rules/all.mk (which sets up targets for the *.mk files under rules), but the *-configure targets do not get run for these.

Am I missing in router/Makefile where the *-configure targets are run?

I believe somethings like the following could fix this in router/Makefile

Add Code: obj-configure := $(foreach obj, $(obj-y) $(obj-n),$(obj)-configure)

modify the all target to Code: all: clean_target $(obj-configure) $(obj-y) $(LINUXDIR)/.config kernel

Change History (3)

comment:1 Changed 5 years ago by rkozola

I made the above changes to my router/Makefile and this appears to configure those items in router missing Makefiles.

Had to make one change to router/rules/dropbear.mk in order to make zlib before ./configure for dropbear(similar to making lzo in the openvpn.mk).

Insert following code after line 1

Code: cd zlib && make

comment:2 Changed 5 years ago by anonymous

  • Resolution set to invalid
  • Status changed from new to closed

nevermind

missed the obj-configure definition in configs.mk and the configure target in all.mk

comment:3 Changed 5 years ago by BrainSlayer

correct, you found it

Note: See TracTickets for help on using tickets.