Annotation of elwix/config/rc.elwix.i386, revision 1.5.2.2

1.2       misho       1: # ELWIX project setup
                      2: #
                      3: # (C) AITNET ltd - Sofia/Bulgaria <office@aitnet.org>
                      4: #    by Michael Pounov <misho@elwix.org>
                      5: #
1.5.2.2 ! misho       6: # $Id: rc.elwix.i386,v 1.5.2.1 2021/07/16 18:38:13 misho Exp $
1.2       misho       7: #
                      8: ELWIX_IS_CONFIGURED="YES"
                      9: 
1.5.2.1   misho      10: VERSION="2.8_x86"
1.2       misho      11: PLATFORM="elwix"
                     12: TIMEZONE="Europe/Sofia"
                     13: BUILD_DATE=`date "+%Y-%m-%d"`
                     14: 
                     15: TARGET="i386"
                     16: TARGET_ARCH="i386"
                     17: TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
1.5.2.2 ! misho      18: PARALLEL_BUILD="-j $(sysctl -n hw.ncpu)"
1.2       misho      19: 
                     20: CURDIR=$(pwd)
                     21: CFGDIR="${CURDIR}/config"
                     22: 
1.5.2.2 ! misho      23: SRCCONF="${CFGDIR}/src_${TARGET_ARCH}.conf"
        !            24: MAKECONF="${CFGDIR}/make_${TARGET_ARCH}.conf"
1.2       misho      25: 
                     26: PREDIR=".."
                     27: 
1.5       misho      28: BSDSRC="/usr/home/misho/work/freebsd.src"
                     29: ADDSRC="/usr/home/misho/work/embedaddon"
1.2       misho      30: 
1.5.2.2 ! misho      31: # Dont change TOPDIR!!!
        !            32: TOPDIR="${CURDIR}/build/${VERSION}"
        !            33: #
1.2       misho      34: REL="${TOPDIR}/release"
                     35: DEST="${TOPDIR}/destdir"
                     36: OBJS="${TOPDIR}/obj"
                     37: ADIR="${TOPDIR}/arch"
                     38: 
1.5.2.2 ! misho      39: XDEV="${ADIR}/${TARGET_ARCH}/xdev"
1.2       misho      40: WORLD="${ADIR}/${TARGET_ARCH}/world"
                     41: KERN="${ADIR}/${TARGET_ARCH}/kernel"
                     42: KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs"
                     43: KERN_NFS="${ADIR}/${TARGET_ARCH}/kernel.nfs"
                     44: PKG="${ADIR}/${TARGET_ARCH}/pkg"
                     45: AIT="${ADIR}/${TARGET_ARCH}"
                     46: BSDOBJ="${OBJS}/${TARGET_ARCH}"
                     47: BSDTOOLS="${BSDSRC}/tools/tools"
                     48: PKGDIR="${WORLD}/elwix/pkg"
1.4       misho      49: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/${TARGET}.${TARGET_ARCH}/tmp"
1.2       misho      50: 
1.3       misho      51: ### Compile depended tools for uboot and etc ...
                     52: COMPILE_DEPTOOLS="YES"
                     53: 
1.2       misho      54: ### Kernel
1.5.2.2 ! misho      55: BSDKERNCONF="${BSDSRC}/sys/${TARGET_ARCH}/conf"
1.2       misho      56: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
                     57: 
                     58: KERNHINT="ELWIX_i386.hints"
                     59: 
                     60: KERNEL="${KERN}/boot/kernel/kernel"
                     61: KERNCONF="ELWIX_i386"
                     62: 
                     63: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
                     64: KERNCONF_ROOTFS="ELWIX_i386_ROOTFS"
                     65: 
                     66: KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel"
                     67: KERNCONF_NFS="ELWIX_i386_NFS"
                     68: 
                     69: ### Rootfs
                     70: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
                     71: ROOTFS_CONF="elwix_firmware.conf"
                     72: 
                     73: ROOTFS="${DEST}/rootfs"
                     74: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
                     75: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
                     76: 
                     77: ROOTFS_KERN="kernel_rootfs.gz"
                     78: 
                     79: ROOTFS_IMG="rootfs.img"
1.5       misho      80: ROOTFS_SIZE="13440k"
                     81: 
                     82: OBJDUMP="/usr/local/bin/i386-unknown-freebsd14.0-objdump"
1.2       misho      83: 
                     84: ### tools Firmware
                     85: LOCALFS_IMG="elwix-pkg.frm"
                     86: 
                     87: ### 3th party
                     88: ROMFS_USR2="${DEST}/romfs.pkg"
                     89: ROMFS_IMG2="elwix-firmware2.sys"
                     90: #ROMFS_SIZE2="40m"
                     91: 
                     92: ### RomFS Firmware
                     93: ROMFS="${DEST}/romfs"
                     94: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
                     95: 
                     96: ROMFS_USR="${ROMFS}/usr"
                     97: ROMFS_IMG="elwix-firmware.sys"
                     98: #ROMFS_SIZE="38m"
                     99: 
                    100: ### Base Firmware
                    101: BASEFS="${DEST}/base"
                    102: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
                    103: 
                    104: BASE_FS="${DEST}/base.fs"
                    105: BASE_ETC="${CFGDIR}/etc/default"
1.4       misho     106: BASE_OS="ELWIX-${VERSION}_base_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2       misho     107: 
                    108: ### FS Image
                    109: FS="${DEST}/elwix.fs"
                    110: FS_ETC="${CFGDIR}/etc/default"
1.3       misho     111: OS="ELWIX-${VERSION}_rootfs_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2       misho     112: 
                    113: FS_EXT="${DEST}/elwix_ext.fs"
                    114: FS_EXT_ETC="${CFGDIR}/etc/default"
1.3       misho     115: OS_EXT="ELWIX-${VERSION}_rootfsext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2       misho     116: 
                    117: ### Make OS Image
                    118: IMG_SIZE=62592
                    119: IMG_SIZE128=125100
1.4       misho     120: IMG_SIZE256=251496
                    121: IMG_SIZE512=500472
1.2       misho     122: 
1.4       misho     123: CFG_NAND_SIZE=524288
1.2       misho     124: 
                    125: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
                    126: 
                    127: ### Cross
                    128: CBUILD="${DEST}/cross_build.sh"
                    129: CGBUILD="${DEST}/cross_gbuild.sh"
                    130: CEXEC="${DEST}/cross_exec.sh"
                    131: CENV="${DEST}/cross_env.sh"
                    132: 
                    133: CROSS_FT_ATH="${BSDTOOLS}/ath"
                    134: CROSS_FT_IPW="${BSDTOOLS}/ipw"
                    135: CROSS_FT_IWI="${BSDTOOLS}/iwi"
                    136: CROSS_FT_MWL="${BSDTOOLS}/mwl"
                    137: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
                    138: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
                    139: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.4       misho     140: CROSS_FT_CXGB="${BSDTOOLS}/cxgbtool"
                    141: CROSS_FT_IFINFO="${BSDTOOLS}/ifinfo"
                    142: CROSS_FT_MCTEST="${BSDTOOLS}/mctest"
                    143: CROSS_FT_NETMAP="${BSDTOOLS}/netmap"
                    144: CROSS_FT_NETBLAST="${BSDTOOLS}/netrate/netblast"
                    145: CROSS_FT_NETRCV="${BSDTOOLS}/netrate/netreceive"
                    146: CROSS_FT_NETSND="${BSDTOOLS}/netrate/netsend"
                    147: 
                    148: CROSS_PATH="../"
1.5       misho     149: CROSS_TOOLS="libelwix 
                    150:                libaitsched
                    151:                libaitcfg
                    152:                libaitio
                    153:                libaitrpc
                    154:                libaitwww
                    155:                libaitsync
                    156:                libaitcli
                    157:                libaitmqtt
                    158:                embedtools
                    159:                ansh mqtt
                    160:                wifinator
                    161:                tftpd"
1.4       misho     162: CROSS_PFX="--prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    163: 
                    164: # additional options to software // <cross_tools_item>_OPTS
                    165: libaitio_OPTS="--enable-aio"
                    166: libaitsched_OPTS="--enable-aio"
                    167: mqtt_OPTS="--with-sqlite3dir=${WORLD}/usr/local"
                    168: 
                    169: # 3th party softwares
                    170: CROSS_3THPATH="../embedaddon/"
1.5       misho     171: CROSS_3THPARTY="mini_sendmail ttcp iperf hping2 
                    172:                        libnet arping mtr bmon
                    173:                        mpd dnsmasq freevrrpd
                    174:                        ipguard choparp 
                    175:                        pimd pimdd 
                    176:                        readline bird bird6"
1.4       misho     177: 
                    178: mini_sendmail_MAKE="${CBUILD}"
                    179: ttcp_MAKE="${CBUILD}"
                    180: iperf_MAKE="${CBUILD}"
                    181: libnet_MAKE="${CBUILD}"
                    182: arping_MAKE="${CBUILD}"
                    183: hping2_MAKE="${CBUILD}"
                    184: mtr_MAKE="${CBUILD}"
                    185: bmon_MAKE="${CGBUILD}"
                    186: mpd_MAKE="${CBUILD}"
                    187: dnsmasq_MAKE="${CBUILD}"
                    188: pimd_MAKE="${CBUILD}"
                    189: pimdd_MAKE="${CBUILD}"
                    190: freevrrpd_MAKE="${CBUILD}"
                    191: ipguard_MAKE="${CBUILD}"
                    192: choparp_MAKE="${CBUILD}"
                    193: readline_MAKE="${CGBUILD}"
                    194: bird_MAKE="${CGBUILD}"
                    195: bird6_MAKE="${CGBUILD}"
1.2       misho     196: 
                    197: #####
                    198: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    199: #####

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>