1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/net-tools/net-tools.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 if [ $target == "dietlibc" ]; then
14 hook_add premake 5 "cp $confdir/config.h.diet config.h"
15 hook_add premake 5 "cp $confdir/config.status.diet config.status"
17 hook_add prepatch 5 "cp $confdir/config.{h,status} ."
20 #don't run configure.sh as we supply preconfigured config files anyway, Ubuntu build fix
21 hook_add premake 5 "sed -i -e 's/config.h:/#config.h:/g' Makefile"
23 var_append makeopt ' ' "LD='$CC' COPTS='$CFLAGS'"
24 var_append makeinstopt ' ' "BASEDIR=$root"
26 # add the wake-on-lan patch
27 var_insert patchfiles " " "`match_source_file -p ether-wake`"