mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 21:24:00 +08:00
1da177e4c3
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
71 lines
1.4 KiB
Bash
71 lines
1.4 KiB
Bash
#!/bin/sh
|
|
#
|
|
# This script can be used to build "jumbo" modules that contain the
|
|
# base PARIDE support, one protocol module and one high-level driver.
|
|
#
|
|
echo -n "High level driver [pcd] : "
|
|
read X
|
|
HLD=${X:-pcd}
|
|
#
|
|
echo -n "Protocol module [bpck] : "
|
|
read X
|
|
PROTO=${X:-bpck}
|
|
#
|
|
echo -n "Use MODVERSIONS [y] ? "
|
|
read X
|
|
UMODV=${X:-y}
|
|
#
|
|
echo -n "For SMP kernel [n] ? "
|
|
read X
|
|
USMP=${X:-n}
|
|
#
|
|
echo -n "Support PARPORT [n] ? "
|
|
read X
|
|
UPARP=${X:-n}
|
|
#
|
|
echo
|
|
#
|
|
case $USMP in
|
|
y* | Y* ) FSMP="-DCONFIG_SMP"
|
|
;;
|
|
*) FSMP=""
|
|
;;
|
|
esac
|
|
#
|
|
MODI="-include ../../../include/linux/modversions.h"
|
|
#
|
|
case $UMODV in
|
|
y* | Y* ) FMODV="-DMODVERSIONS $MODI"
|
|
;;
|
|
*) FMODV=""
|
|
;;
|
|
esac
|
|
#
|
|
case $UPARP in
|
|
y* | Y* ) FPARP="-DCONFIG_PARPORT"
|
|
;;
|
|
*) FPARP=""
|
|
;;
|
|
esac
|
|
#
|
|
TARG=$HLD-$PROTO.o
|
|
FPROTO=-DCONFIG_PARIDE_`echo "$PROTO" | tr [a-z] [A-Z]`
|
|
FK="-D__KERNEL__ -I ../../../include"
|
|
FLCH=-D_LINUX_CONFIG_H
|
|
#
|
|
echo cc $FK $FSMP $FLCH $FPARP $FPROTO $FMODV -Wall -O2 -o Jb.o -c paride.c
|
|
cc $FK $FSMP $FLCH $FPARP $FPROTO $FMODV -Wall -O2 -o Jb.o -c paride.c
|
|
#
|
|
echo cc $FK $FSMP $FMODV -Wall -O2 -o Jp.o -c $PROTO.c
|
|
cc $FK $FSMP $FMODV -Wall -O2 -o Jp.o -c $PROTO.c
|
|
#
|
|
echo cc $FK $FSMP $FMODV -DMODULE -DPARIDE_JUMBO -Wall -O2 -o Jd.o -c $HLD.c
|
|
cc $FK $FSMP $FMODV -DMODULE -DPARIDE_JUMBO -Wall -O2 -o Jd.o -c $HLD.c
|
|
#
|
|
echo ld -r -o $TARG Jp.o Jb.o Jd.o
|
|
ld -r -o $TARG Jp.o Jb.o Jd.o
|
|
#
|
|
#
|
|
rm Jp.o Jb.o Jd.o
|
|
#
|